Skip to content

Instantly share code, notes, and snippets.

@PauloLuan
Created January 13, 2025 17:40
Show Gist options
  • Save PauloLuan/6509ada1e1fa5e47f1a7bfc3759e0c44 to your computer and use it in GitHub Desktop.
Save PauloLuan/6509ada1e1fa5e47f1a7bfc3759e0c44 to your computer and use it in GitHub Desktop.
vscode
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+cmd+k",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "shift+cmd+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+cmd+f",
"command": "editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+cmd+o",
"command": "editor.action.organizeImports",
"when": "textInputFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"key": "shift+alt+o",
"command": "-editor.action.organizeImports",
"when": "textInputFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
}
]
{
"editor.formatOnSave": true,
"workbench.colorTheme": "Omni",
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"security.workspace.trust.untrustedFiles": "open",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"chat.editing.alwaysSaveWithGeneratedChanges": true,
"extensions.ignoreRecommendations": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment