Config¶
Settings¶
Customizing IntelliSense: https://code.visualstudio.com/docs/editor/intellisense
User vs workspace settings¶
Note: the workspace settings will overwrite the user settings
Disable vs code breadcrumbs and sticky scroll¶
"breadcrumbs.enabled": false, // disable breadcrumbs
"editor.stickyScroll.enabled": false, // disable sticky scroll
"editor.inlayHints.enabled": "offUnlessPressed", // disable rust inlay hints
"editor.semanticTokenColorCustomizations": { // disable rust mut var underline
"enabled": true,
"rules": {
"*.mutable": {
"underline": false,
}
}
},
"window.zoomLevel": -0.1, // zoom in/out size of windows, -1:20% smaller, 1:20% larger
"window.titleBarStyle": "custom", // reduce the height of the title bar
"window.density.editorTabHeight": "compact", // reduce the height of the files tab bar
Editor font size and line space¶
settings > editor > line height > 15
Debug console font size and line space¶
Terminal font size¶
Line height can't be scaled smaller than 1
terminal line number¶
Default is 1000
New line at EOF¶
File > Preference > Settings (^,) > 'insert final newline'
Trim trailing whitespaces¶
user settings > Trim Trailing Whitespace
Wrap line¶
workspace > settings.json
"editor.rulers": [80, 88, 120],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"[markdown]": {
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120
}
Vertical rulers¶
^, user > settings.json > search for ruler
"editor.minimap.enabled": false,
"editor.rulers": [80,88],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#333333",
"tab.activeBorderTop": "#066794",
"tab.unfocusedActiveBorder": "#000000"
},
Active tab settings¶
Search "workbench.action.openSettingsJson" > Open user settings.json
"editor.rulers": [80,88],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#312f30",
"tab.inactiveForeground":"#ECECEC",
"tab.activeBackground": "#8f6155",
"tab.activeBorderTop": "#007acc",
"tab.activeBorder": "#ff0000",
"tab.unfocusedActiveBorder": "#000000"
},
Copy relative filepath separator setting¶
Search Explorer: Copy Relative Path Separator in settings
Auto closing quotes/brackets¶
disable spell check in problems¶
in settings.json add:
"cSpell.useCustomDecorations": true,
"cSpell.textDecoration": "underline wavy #bbbbbb66", //"underline wavy #fc9867 auto", //
disable inline values in debugger¶
It's annoying that Python debugger in VS Code is showing inline variable values (faded text next to your code while debugging)
dockerfile¶
mark files with some extension as docker file