Skip to content

Instantly share code, notes, and snippets.

@r3nanp
Last active November 14, 2020 21:43
Show Gist options
  • Save r3nanp/a8d56b972eb27a915f005734b707ca9c to your computer and use it in GitHub Desktop.
Save r3nanp/a8d56b972eb27a915f005734b707ca9c to your computer and use it in GitHub Desktop.
My VS Code settings
[
{
"key": "ctrl+shift+i",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
}
]
{
// Workbench settings
"workbench.startupEditor": "none",
"workbench.colorTheme": "Omni",
"workbench.iconTheme": "material-icon-theme",
"workbench.editor.labelFormat": "short",
"extensions.ignoreRecommendations": true, // Not ignoreRecommendations
// Editor configuration
"editor.renameOnType": true,
"editor.tabSize": 2,
"editor.fontSize": 16,
"editor.lineHeight": 24,
"editor.fontFamily": "Jetbrains Mono",
"editor.fontLigatures": true,
"editor.rulers": [80, 120],
"editor.renderLineHighlight": "gutter",
"editor.parameterHints.enabled": false,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"editor.suggestSelection": "first",
//Windows settings
"window.zoomLevel": 0,
"window.menuBarVisibility": "toggle",
"breadcrumbs.enabled": true,
//Explorer
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.fontSize": 14,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"node_modules": true
},
//Material Icon
"material-icon-theme.folders.associations": {
"infra": "app",
"entities": "class",
"schemas": "class",
"typeorm": "database",
"repositories": "mappings",
"http": "container",
"migrations": "tools",
"modules": "components",
"implementations": "core",
"dtos": "typescript",
"fakes": "mock",
"websockets": "pipe",
"protos": "pipe",
"grpc": "pipe"
},
// Eslint config
"eslint.packageManager": "yarn",
"eslint.codeActionsOnSave.mode": "all",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"emmet.syntaxProfiles": { "javascript": "jsx", "typescript": "tsx" },
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"typescript": "typescriptreact"
},
"colorize.languages": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"html",
"json",
"css",
"php"
],
//Git settings
"git.autofetch": true,
"git.confirmSync": true,
"gitlens.views.repositories.files.layout": "list",
"discord.largeImageIdle": "Programming...", //Discord Presence
"discord.detailsIdle": "Programming...",
"javascript.updateImportsOnFileMove.enabled": "never",
"typescript.updateImportsOnFileMove.enabled": "never",
"javascript.suggest.autoImports": true,
"typescript.suggest.autoImports": true,
"terminal.integrated.rendererType": "dom",
"diffEditor.ignoreTrimWhitespace": true,
"explorer.compactFolders": false,
"tabnine.experimentalAutoImports": true,
//Prettier settings
"prettier.singleQuote": true,
"prettier.semi": false,
"prettier.arrowParens": "avoid",
"prettier.endOfLine": "lf",
"prettier.trailingComma": "es5",
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment