Skip to content

Instantly share code, notes, and snippets.

@CarloCattano
Last active April 15, 2023 07:51
Show Gist options
  • Save CarloCattano/4fe55305305d3b5d353aa551b4dee9e2 to your computer and use it in GitHub Desktop.
Save CarloCattano/4fe55305305d3b5d353aa551b4dee9e2 to your computer and use it in GitHub Desktop.
Vscode settings to swim with style and honor for a 42 friendly eperience

Vscode persistent settings

for seeing the whitespace ( tabs ➜ and spaces • ) and always have a 4 spaces sized tab

Steps:

1. Open vscode and go to view -> Command Palette -> Type User settings JSON

2. Add this to your JSON preferences file

3. Save the file and enjoy

You can change the color of the whitespace markers hovering over the color rectangle on editorWhitespace.foreground Change your theme to your liking.

{
    "editor.renderWhitespace": "all",
    "workbench.colorCustomizations": {
        "editorWhitespace.foreground": "#c6c79f77"
    },
        "editor.tabSize": 4,
        "editor.insertSpaces": false,
    "editor.detectIndentation": false,
    "workbench.colorTheme": "Monokai",
    "explorer.confirmDelete": false,
    "workbench.editor.enablePreview": false,
    "extensions.ignoreRecommendations": true,
	"editor.minimap.enabled": false,
}


image

@CarloCattano
Copy link
Author

CarloCattano commented Nov 1, 2022

for avoiding auto closing parenthesis and brackets add this

"editor.autoClosingBrackets": "beforeWhitespace",
"editor.autoClosingQuotes": "never",
"files.autoSave": "onFocusChange",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment