Visual Studio Code
Contents
Disable IntelliSense for a particular file type
- Hit
F1
to open the command palette
Configure language specific settings
"editor.quickSuggestions": "false"
Set VSCode as the default editor on MacOS
- Add VSCode to the
PATH
: export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH
- Verify that VSCode is in fact on the path with
which code
→ /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
export EDITOR="code -w"
(-w
means wait, i.e. only return when the tab is closed)
- In your
.gitconfig
[core]
editor="code -w"
Remove the tab bar
"workbench.editor.showTabs": false
Add Newlines At End of File
files.insertFinalNewline: true
Clojure editing
Vim emulation
Prevent VSCode from opening files in preview mode
- By default, VSCode opens files in preview mode
- This opens files in a tab, and when you open the next file, it replaces the current tab rather than creating a new tab
- This is pretty annoying, so to disable this behavior:
- Set
workbench.editor.enablePreview
to false
- Set
workbench.editor.enablePreviewFromQuickOpen
to false
Disable Hot Exit
- Set "Restore Windows" to
false
- Set "Hot Exit" to
false
Better markdown editing
- For some quality of life improvements when editing markdown, get the Markdown All In One plugin
- To format tables with the Markdown All In One plugin:
Alt-Shift-F
- Add the markdownlint plugin to catch common markdown errors
Enable/Disable git integration
- If you find VSCode's git integration to be annoying, you can disable it by setting the following flags:
"git.enabled": false
"git.path": null
"git.autofetch": false
- To re-enable git, just undo those changes