Skip to content

Instantly share code, notes, and snippets.

@sethvargo
Created April 27, 2021 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sethvargo/d565d2ce0bdd54c8248fcd4c808ca1a4 to your computer and use it in GitHub Desktop.
Save sethvargo/d565d2ce0bdd54c8248fcd4c808ca1a4 to your computer and use it in GitHub Desktop.
Visual Studio Code - configurations
[
{
"key": "shift+cmd+r",
"command": "rewrap.rewrapComment",
"when": "editorTextFocus"
},
{
"key": "alt+q",
"command": "-rewrap.rewrapComment",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug"
},
{
"key": "ctrl+shift+down",
"command": "cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+down",
"command": "-cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+up",
"command": "cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+up",
"command": "-cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "cmd+m cmd+p",
"command": "markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "shift+cmd+v",
"command": "-markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "shift+cmd+m shift+cmd+p",
"command": "markdown.showPreviewToSide",
"when": "editorLangId == 'markdown'"
},
{
"key": "cmd+k v",
"command": "-markdown.showPreviewToSide",
"when": "editorLangId == 'markdown'"
},
{
"key": "'",
"command": "editor.action.insertSnippet",
"when": "editorLangId == markdown && editorTextFocus && editorHasSelection",
"args": {
"snippet": "'$TM_SELECTED_TEXT$0'"
}
},
{
"key": "shift+'",
"command": "editor.action.insertSnippet",
"when": "editorLangId == markdown && editorTextFocus && editorHasSelection",
"args": {
"snippet": "\"$TM_SELECTED_TEXT$0\""
}
},
{
"key": "[",
"command": "editor.action.insertSnippet",
"when": "editorLangId == markdown && editorTextFocus && editorHasSelection",
"args": {
"snippet": "[$TM_SELECTED_TEXT$0]"
}
},
{
"key": "shift+[",
"command": "editor.action.insertSnippet",
"when": "editorLangId == markdown && editorTextFocus && editorHasSelection",
"args": {
"snippet": "{$TM_SELECTED_TEXT$0}"
}
},
{
"key": "shift+9",
"command": "editor.action.insertSnippet",
"when": "editorLangId == markdown && editorTextFocus && editorHasSelection",
"args": {
"snippet": "($TM_SELECTED_TEXT$0)"
}
},
{
"key": "cmd+shift+\\",
"command": "workbench.files.action.showActiveFileInExplorer",
"when": "editorTextFocus"
},
{
"key": "ctrl+s a",
"command": "editor.action.sortLinesAscending"
},
{
"key": "ctrl+s d",
"command": "editor.action.sortLinesDescending"
},
]
{
// Breadcrumbs
"breadcrumbs.enabled": false,
// Cloud Code
"cloudcode.debug-kubernetes": {
"suppressGoWarning": true,
"suppressNodeJSWarning": true
},
"cloudcode.gke": {
"projectIds": []
},
// cspell
"cSpell.enabled": false,
// C#
"csharp.suppressDotnetRestoreNotification": true,
"[csharp]": {
"editor.formatOnSave": false
},
// Dart
"dart.allowAnalytics": false,
"dart.closingLabels": false,
"dart.flutterCreateIOSLanguage": "swift",
// DiffEditor
"diffEditor.ignoreTrimWhitespace": false,
// Editor
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.acceptSuggestionOnEnter": "off",
"editor.accessibilitySupport": "off",
"editor.autoIndent": "advanced",
"editor.codeLens": false,
"editor.detectIndentation": false,
"editor.fontSize": 14,
"editor.lightbulb.enabled": false,
"editor.minimap.enabled": false,
"editor.parameterHints.enabled": false,
"editor.quickSuggestions": false,
"editor.quickSuggestionsDelay": 1000000,
"editor.renderWhitespace": "all",
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.scrollBeyondLastLine": false,
"editor.suggestOnTriggerCharacters": false,
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"editor.wordBasedSuggestions": false,
// Explorer
"explorer.autoReveal": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
// Extensions
"extensions.ignoreRecommendations": false,
// Files
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.eol": "\n",
// Go
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"go.coverOnTestPackage": false,
"go.docsTool": "gogetdoc",
"go.enableCodeLens": {
"references": false,
"runtest": false
},
"go.formatTool": "goimports",
"go.lintOnSave": "package",
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--fast",
"--exclude=\"SA3000\""
],
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"go.vetOnSave": "package",
"gopls": {
"usePlaceholders": false,
"staticcheck": true,
"completeUnimported": false
},
// Java
"[java]": {
// See "Run on save"
"editor.formatOnSave": false
},
"java.errors.incompleteClasspath.severity": "ignore",
"java.format.onType.enabled": false,
// Javascript
"[javascript]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"javascript.updateImportsOnFileMove.enabled": "always",
// Python
"python.jediEnabled": false,
"python.languageServer": "Microsoft",
"python.showStartPage": false,
// Remote
"remote.SSH.useLocalServer": true,
// Run on save
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.java$",
"cmd": "google-java-format --replace ${file}"
}
]
},
// Search
"search.showLineNumbers": true,
// Terraform
"[terraform]": {
"editor.formatOnSave": true
},
"terraform.indexing": {
"enabled": false,
"liveIndexing": false,
"delay": 500,
"exclude": [
".terraform/**/*",
"**/.terraform/**/*"
]
},
// Workbench
"workbench.activityBar.visible": false,
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "material-icon-theme",
"workbench.panel.defaultLocation": "bottom",
"workbench.editor.restoreViewState": false,
"workbench.startupEditor": "none",
"workbench.statusBar.visible": true,
"workbench.tips.enabled": false,
// Window
"window.restoreWindows": "none",
"workbench.sideBar.location": "left",
"html.autoClosingTags": false,
"html.format.endWithNewline": true,
"html.format.indentHandlebars": true,
"files.associations": {
".env": "shellscript"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment