Shortcuts
- Command bar - ctrl+shift+p
Settings
Open the JSON settings by hitting "CTRL + SHIFT + P" and searching for "settings json"
Formatting
// Format when saving a file
"editor.formatOnSave": true
// Set the default formatter to prettier
"editor.defaultFormatter": "esbenp.prettier-vscode"
Rulers
// Add a ruler at 80 characters
"editor.rulers": [
80
]
// Set the ruler color to blue
"workbench.colorCustomizations": {
"editorRuler.foreground": "#0000ff"
}
Tab Size
// Tabs should count as 2 spaces
"editor.tabSize": 2
Language Settings
"[FILE_TYPE]": {
// Settings
}
// Example
"[python]": {
"editor.tabSize": 4
}