What can you do about it? A lot actually. Stay with me to see how you can help your favorite extensions load fast!
.vscodeignore
file\
npm run package
npm run publish
npm run test
launch.json
launch.json
tsc
for the tests and debugging.
package.json
\
package.json
\
launch.json
configurations for debugging the runtime
and tests:\
Peacock
F1
to open the command
palette
Peacock
Peacock: Change to a favorite
color
npm test
node_modules
). I found that not only was Webpack
causing my fans to run on overdrive,
Visual Studio Code would get so laggy
that typing caused seconds of
latency.
Code Helper (Renderer)
was taking 150% of my CPU.
Code Helper (Renderer)
is process that comes from an extension.
Disable all extensions and it will
work.
Developer: Open Process
Explorer
.
electron_node tsserver.js
was taking up over 100% of my CPU. What
was this? I didn't use any
TypeScript in my project.
@builtin
in your extensions.
TypeScript and JavaScript Language
Features
which includes a lot of functionality
like closing tags. However, it
automatically runs TypeScript
type-checking even if you don't
have a TypeScript project. (This begs
the question, why is Visual Studio Code
so deeply integrated with TypeScript
that it automatically assumes
you're using it? Microsoft is
selling us its entire ecoystem.)
TypeScript: Disable Automatic Type
Acquisition
feature, Visual Studio Code was
instantly faster than I've ever
seen it before.
“Electron (formerly known as Atom Shell) is an open-source software framework developed and maintained by GitHub. It allows for the development of desktop GUI applications using web technologies: it combines the Chromium rendering engine and the Node.” — Wikipedia
File > Preferences >
Settings >
Files:Exclude
: Add any pattern of files that
you don’t want VS Code to use in
your project.
File > Preferences > Text
Editor > Minimap >
Enabled
: Checkbox to disable/enable
the minimap.
File > Preferences > Text
Editor > Suggestions
: Here, you can fine-tune
anything related to
suggestions.
File > Preferences > Text
Editor > From on save /
Format on paste
: You can disable formatting on
saving and defer that to
pre-commit, for example.
File > Preferences >
Application > Telemetry
: Telemetry might impact
performance.
File > Preferences > Text
Editor > Code lens
: You can disable/enable the
Code Lens feature.
cmd + p > Developer: Show Running
Extensions
.Example of running extensions
command
cmd + p > Developer Startup
Performance
.argv.json
file.
CMD + Shift + P > Configure Runtime
Arguments
.Configuring the runtime
arguments
argv.json
file with all your custom
configurations.