This repository contains my personal Visual Studio Code settings. These settings are optimized for JavaScript, TypeScript, JSON, HTML, and CSS development, ensuring a consistent and efficient coding experience.
- Prettier as Default Formatter: Ensures uniform formatting across JavaScript, TypeScript, JSON, HTML, and CSS.
- Format on Save & Paste: Automatically formats code upon saving or pasting.
- Bracket Pair Colorization: Enhances readability of nested code structures.
- Optimized Editor UI: Custom font size, line height, and disabled minimap for better focus.
- Auto Save: Saves files automatically after a short delay.
- Explorer Tweaks: Expanded folder structure for better navigation.
- Custom Theme Customization: Aesthetic title bar styling.
To use these settings in your VS Code environment:
- Open VS Code.
- Navigate to Settings (File > Preferences > Settings or
Ctrl + ,
). - Click the Open Settings (JSON) button in the top right corner.
- Copy and paste the contents of
settings.json
from this repository. - Save the file and restart VS Code if necessary.
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.bracketPairColorization.enabled": true,
"editor.fontSize": 16,
"editor.formatOnPaste": true,
"editor.guides.bracketPairs": true,
"editor.lineHeight": 24,
"editor.minimap.enabled": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"explorer.compactFolders": false,
"files.autoSave": "afterDelay",
"workbench.editor.enablePreview": false,
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#007acc",
"titleBar.activeForeground": "#ffffff"
}
}
Feel free to submit pull requests or suggestions if you have improvements or additional settings to enhance the development experience.
This project is licensed under the MIT License.