My Visual Studio Code Settings


All of those setting serve the purpose of saving me from being put in a mental institution

editor.hover.delay

Moving around with the mouse pointer, those hints popping up immediatly drive me crazy. A delay makes it a bit less annoying

editor.inlayHints.enabled

Especially with rust-analyzer, which is putting in hints for the datatypes everywhere, this is annoying for two reasons:

  • Since rust datatypes are huge (Result<Something<Mutex<dyn std::Error<String>>, infinite insanity>>>), lines are too long
  • Depending on where the cursor is, the hint is shown or not, making the caret jump around all the. ANNOYING!
{
    "editor.hover.delay": 800,
    "editor.inlayHints.enabled": "offUnlessPressed", // press Ctrl+Alt to show
    "editor.occurrencesHighlight": "off",
}

editor.occurrencesHighlight

The highlighting of every occurence with a big rectangle is making it very hard to see, where the cursor is. Some manic must think, this makes a good expierience. Yes, if your goal is to drive people mad. So I disable this insane setting:

{
    "editor.occurrencesHighlight": "off",
}

workbench.editor.enablePreview

Every time I click on a file in the explorer, the currently open editor tab displays the content of that file. The current tab is always a random file, that I currently work on. This way, editors are replaced with random files, that I accidently (or intentionally) clicked on. This is maddening. Who thaught this is a good idea? Ah, I see, a Microsoft engineer…

{
    "workbench.editor.enablePreview": false,
    "workbench.editor.enablePreviewFromQuickOpen": false,
}

workbench.list.openMode

To prevent VS Code to open any file that isn’t bolted to the floor (meaning on a single click), this setting can calm your nerves:

{
    "workbench.list.openMode": "doubleClick",
}