Skip to content

Instantly share code, notes, and snippets.

@damlys
Last active December 8, 2024 16:42
Show Gist options
  • Save damlys/c31bbe917a08edde67516444868818db to your computer and use it in GitHub Desktop.
Save damlys/c31bbe917a08edde67516444868818db to your computer and use it in GitHub Desktop.
vscode settings
$ code --list-extensions
alefragnani.bookmarks
amazonwebservices.aws-toolkit-vscode
atlassian.atlascode
bierner.markdown-preview-github-styles
eamodio.gitlens
editorconfig.editorconfig
esbenp.prettier-vscode
foxundermoon.shell-format
github.codespaces
github.copilot
github.copilot-chat
github.remotehub
github.vscode-github-actions
github.vscode-pull-request-github
golang.go
googlecloudtools.cloudcode
hashicorp.hcl
hashicorp.terraform
hbrok.markdown-preview-bitbucket
jbockle.jbockle-format-files
ms-azuretools.vscode-docker
ms-kubernetes-tools.vscode-kubernetes-tools
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-vscode-remote.remote-containers
ms-vscode.remote-repositories
ms-vscode.vscode-speech
pascalreitermann93.vscode-yaml-sort
redhat.vscode-xml
redhat.vscode-yaml
streetsidesoftware.code-spell-checker
timonwong.shellcheck
xdebug.php-debug
[
{
"key": "alt+tab",
"command": "workbench.files.action.showActiveFileInExplorer",
"when": "editorTextFocus"
},
{
"key": "escape",
"command": "workbench.action.focusActiveEditorGroup",
"when": "filesExplorerFocus || searchViewletFocus"
},
{
"key": "ctrl+escape",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "enter",
"command": "-renameFile"
},
{
"key": "f2",
"command": "renameFile",
"when": "filesExplorerFocus"
},
{
"key": "cmd+backspace",
"command": "-deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
// Git
{
"key": "alt+cmd+z",
"command": "git.revertSelectedRanges",
"when": "editorTextFocus"
},
// macOS native tabs
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "cmd+shift+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "workbench.action.newWindowTab"
},
{
"key": "cmd+shift+]",
"command": "-workbench.action.nextEditor"
},
{
"key": "cmd+shift+]",
"command": "workbench.action.showNextWindowTab"
},
{
"key": "cmd+shift+[",
"command": "-workbench.action.previousEditor"
},
{
"key": "cmd+shift+[",
"command": "workbench.action.showPreviousWindowTab"
},
// Editor
{
"key": "cmd+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "cmd+w",
"command": "workbench.action.closeActiveEditor",
"when": "editorFocus"
},
{
"key": "cmd+shift+w",
"command": "workbench.action.closeAllEditors"
},
// Terminal
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new"
},
{
"key": "ctrl+shift+`",
"command": "workbench.action.toggleMaximizedPanel",
"when": "terminalFocus"
},
{
"key": "cmd+n",
"command": "workbench.action.terminal.new",
"when": "terminalFocus || terminalTabsFocus"
},
{
"key": "ctrl+tab",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "cmd+w",
"command": "workbench.action.terminal.kill",
"when": "terminalFocus"
},
{
"key": "cmd+shift+w",
"command": "workbench.action.terminal.killAll",
"when": "terminalFocus"
},
{
"key": "escape",
"command": "workbench.action.terminal.focus",
"when": "terminalTabsFocus"
},
// Disable splitting
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.split"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.split"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "cmd+k cmd+shift+\\",
"command": "-workbench.action.splitEditorInGroup"
},
{
"key": "cmd+k cmd+\\",
"command": "-workbench.action.splitEditorOrthogonal"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.splitInstance"
},
{
"key": "cmd+\\",
"command": "-workbench.action.terminal.splitInstance"
},
{
"key": "cmd+k cmd+shift+\\",
"command": "-notebook.cell.split"
},
// Fix Polish characters (ąćęłńóśźżĄĆĘŁŃÓŚŹŻ)
{
"key": "alt+c",
"command": "",
"when": "textInputFocus"
},
{
"key": "alt+z",
"command": "",
"when": "textInputFocus"
},
{
"key": "shift+alt+a",
"command": "",
"when": "textInputFocus"
},
{
"key": "shift+alt+l",
"command": "",
"when": "textInputFocus"
}
]
{
"editor.fontSize": 14,
"editor.letterSpacing": 0,
"editor.lineHeight": 1.4,
"editor.indentSize": 2,
"editor.tabSize": 2,
"terminal.integrated.fontSize": 14,
"terminal.integrated.letterSpacing": 0,
"terminal.integrated.lineHeight": 1.4,
"markdown.preview.fontSize": 14,
"markdown.preview.lineHeight": 1.4,
"files.encoding": "utf8",
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true,
"files.autoSave": "onFocusChange",
"files.enableTrash": false,
"files.exclude": {
"**/.DS_Store": true,
"**/.git": false,
"**/.hg": false,
"**/.svn": false,
"**/CVS": false,
"**/Thumbs.db": false
},
"search.exclude": {
"**/.git": true,
"**/*.code-search": true,
"**/bower_components": true,
"**/node_modules": true
},
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"yaml.format.printWidth": 120,
"prettier.printWidth": 120,
"shellcheck.exclude": ["1090"],
"files.associations": {
"Dockerfile.bash": "shellscript",
"Kptfile": "yaml",
"*.yml": "yaml"
},
"[dockerfile]": { "editor.defaultFormatter": "ms-azuretools.vscode-docker" },
"[go]": { "editor.defaultFormatter": "golang.go" },
"[hcl]": { "editor.defaultFormatter": "hashicorp.hcl" },
"[helm]": { "editor.defaultFormatter": null, "editor.formatOnSave": false },
"[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[ignore]": { "editor.defaultFormatter": "foxundermoon.shell-format" },
"[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[json][jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": { "editor.wordWrap": "off" },
"[shellscript]": { "editor.defaultFormatter": "foxundermoon.shell-format" },
"[terraform][terraform-vars]": { "editor.defaultFormatter": "hashicorp.terraform" },
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[xml]": { "editor.defaultFormatter": "redhat.vscode-xml" },
"[yaml]": { "editor.defaultFormatter": "redhat.vscode-yaml" },
// "workbench.editorAssociations": {
// "*.md": "vscode.markdown.preview.editor"
// },
"breadcrumbs.enabled": true,
"diffEditor.ignoreTrimWhitespace": false,
"diffEditor.wordWrap": "off",
"editor.bracketPairColorization.enabled": false,
"editor.codeLens": false, // github copilot requires "true"
"editor.folding": false,
"editor.guides.indentation": false,
"editor.inlineSuggest.enabled": true,
"editor.lineNumbers": "off",
"editor.matchBrackets": "near",
"editor.minimap.enabled": false,
"editor.occurrencesHighlight": "singleFile",
"editor.renderControlCharacters": true,
"editor.renderLineHighlight": "line",
"editor.renderWhitespace": "none",
"editor.smoothScrolling": false,
"editor.stickyScroll.enabled": false,
"editor.suggestSelection": "recentlyUsed",
"editor.wordWrap": "off",
"explorer.compactFolders": false,
"explorer.confirmDragAndDrop": false,
"markdown-preview-github-styles.colorTheme": "light",
"scm.compactFolders": false,
"terminal.integrated.tabs.showActions": "never",
"window.customTitleBarVisibility": "never",
"window.nativeTabs": true,
"window.restoreWindows": "none",
"workbench.colorTheme": "Default Dark+",
"workbench.editor.enablePreview": false,
"workbench.editor.openPositioning": "first",
"workbench.editor.showTabs": "single",
"workbench.editor.splitOnDragAndDrop": false,
"workbench.iconTheme": null,
"workbench.settings.editor": "json",
"workbench.settings.useSplitJSON": false,
"workbench.startupEditor": "none",
"workbench.statusBar.visible": false,
"workbench.tips.enabled": false,
"workbench.tree.enableStickyScroll": false,
"workbench.tree.renderIndentGuides": "none",
"git.autoRepositoryDetection": "subFolders",
"git.openRepositoryInParentFolders": "never",
"gitlens.blame.format": "${author|16?} ${agoOrDate|14-}",
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.codeLens.recentChange.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.defaultDateFormat": "YYYY-MM-DD hh:mm:ss",
"gitlens.defaultDateShortFormat": "YYYY-MM-DD",
"gitlens.defaultTimeFormat": "hh:mm:ss",
"gitlens.hovers.currentLine.over": "line",
"gitlens.hovers.enabled": false,
"gitlens.showWhatsNewAfterUpgrades": false,
"vs-kubernetes": {
"vs-kubernetes.crd-code-completion": "enabled"
},
"yaml.schemas": {},
"yaml.customTags": [],
"cSpell.userWords": [
"amazonwebservices",
"atlascode",
"autoscaler",
"azuretools",
"buildkit",
"buildx",
"cloudcode",
"damlys",
"devcontainer",
"fullname",
"gcloud",
"googlecloudtools",
"goreleaser",
"gotmpl",
"gotpl",
"gserviceaccount",
"hashicorp",
"hostpath",
"kpt",
"kptfile",
"kuard",
"kube",
"kubectl",
"kubernetes",
"kustomization",
"kustomize",
"letsencrypt",
"minikube",
"nmap",
"quickstart",
"shellcheck",
"shellformat",
"shfmt",
"skaffold",
"tftpl",
"workdir"
],
"redhat.telemetry.enabled": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment