By VS Code has some poor default configurations, lets undo some of those sins.
- Access Settings to begin:
Ctrl + ,
Always start VS Code with a fresh slate. Don't restore previously opened tabs or projects.
| Search Term | Setting |
|---|---|
| "Restore Windows" | Set to, None |
Show a "Save file" prompt when exiting. Don't let the system assume I'll remember to edit the file next time I open it.
| Search Term | Setting |
|---|---|
| "Hot Exit" | Set to, Off |
When pressing F12 to "Go to Definition", don't open a "new tab", use the one that is already opened.
| Search Term | Setting |
|---|---|
| "Reveal if Open" | Checked |
{
"search.exclude": {
"**/cmake": true,
"**/build": true,
"**/Drivers": true,
"**/Middlewares": true,
},
"extensions.ignoreRecommendations": true,
"editor.detectIndentation": false,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.formatOnType": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.rulers": [
120
],
"editor.snippets.codeActions.enabled": true,
"editor.snippetSuggestions": "top",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"workbench.editor.enablePreview": false,
}
