Friday, August 19, 2022

VS Code : Improve Load Time, Performance, Build and Debugging Speed

 

 

 

Here's How to Make VSCode Faster

So for some reason your VSCode is slow. Really slow. How are you supposed to be productive when the program is running at snail speed? I'm going to show you how to fix this and make VS Code faster.

VS Code Settings to tweak: 

1.     Minimap

a.     "editor.minimap.enabled": false,

Controls whether the minimap is shown I’ve set it to false. In my opinion, it creates visual clutter rather than actually help me while working in a file.

2.    editor.linkedEditing — Editor: Linked Editing

a.     "editor.linkedEditing": true

I’ve set it to true. As someone who likes to do frontend development, I work with HTML templates a lot. 

3.     Breadcrumbs thumbnails

a.     "breadcrumbs.enabled": false

not use the fancy settings editor, you can manually add this to your configuration: 

4.    Soft Preview

a.     "workbench.editor.enablePreview": false

Disable single click soft preview file, this creates a preview window with any single-click in vs code solution explorer.

5.    Whitespace render:

a.     "editor.renderWhitespace": "all"

See whitespace usage.

6.    Code bracket readability

a.     "editor.bracketPairColorization.enabled": false,

"editor.bracketPairColorization.independentColorPoolPerBracketType": true

Improve code readability to improve productivity.

7.         Simple file dialog

a.     "files.simpleDialog.enable": true

Open file with in-app dialog

8.    Powershell and editor optimized settings:

a.     https://youtube.com/clip/UgkxJtWpfn9krX_U5U-KlZDjmM9PAlTeqtSG

9.    Window Title

"window.titleSeparator": " |",

    "window.title": "${dirty}${remoteName}${separator}${rootName}${separator}${activeEditorShort}${separator}${appName}"

    Controls the window title based on the active editor. Variables are substituted based on the context:

10.                       workbench.tips.enabled

a.     "workbench.tips.enabled": false

Disable the tips on load

11. debug.openExplorerOnEnd

a.     "debug.openExplorerOnEnd": true

12.                        Telemetry might impact performance.

a.     "telemetry.telemetryLevel": "off"

13.                        Disable Search on Type.

a.     "search.searchOnType": false

14.                        Stop Notifications

a.     "update.showReleaseNotes": false,

b.        "workbench.enableExperiments": false

15.                        Optional:

a.     CodeLens Disable

b.    Mindmap on/Off

c.     Terminal GPU Acceleration

d.    Extension Load times: You can easily monitor the startup time of all those plugins by executing cmd + p > Developer: Show Running Extensions.

 

 

 

All the user settings in json:

 "vsicons.dontShowNewVersionMessage": true,
    "editor.minimap.enabled": false,
    "editor.linkedEditing": true,
    "breadcrumbs.enabled": false,
    "workbench.editor.enablePreview": false,
    "editor.renderWhitespace": "all",
    "editor.bracketPairColorization.independentColorPoolPerBracketType": true,
    "files.simpleDialog.enable": true,
    "debug.onTaskErrors": "debugAnyway",
    "diffEditor.ignoreTrimWhitespace": false,
    "files.hotExit": "onExitAndWindowClose",
    "workbench.startupEditor": "none",
    "files.autoSaveDelay": 10000,
    "files.autoSave": "afterDelay",
    "editor.snippetSuggestions": "bottom",
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.tabCompletion": "on",
    "update.enableWindowsBackgroundUpdates": false,
    "window.newWindowDimensions": "maximized",
    "window.titleSeparator": " |",
    "window.title": "${dirty}${remoteName}${separator}${rootName}${separator}${activeEditorShort}${separator}${appName}",
    "workbench.tips.enabled": false,
    "debug.openExplorerOnEnd": true,
    "telemetry.telemetryLevel": "off",
    "search.exclude": {
        "": true
    },
    "files.exclude": {
        "**/node_modules": true
    },
    "editor.bracketPairColorization.enabled": false,
    "search.searchOnType": false,
    "extensions.ignoreRecommendations": true,
    "update.showReleaseNotes": false,
    "workbench.enableExperiments": false

   

 References:

https://bit.ly/3QCrQjR

https://bit.ly/3K3zYaS

https://bit.ly/3QwmxT8

https://bit.ly/3c6dGbT

https://bit.ly/3QCR9CC

https://bit.ly/3QDeTq2

https://bit.ly/3pxaV6o

No comments:

Post a Comment