Skip to content

Instantly share code, notes, and snippets.

@escamoteur
Last active October 5, 2020 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save escamoteur/4d1abc797f9450c96029a083a0e9820a to your computer and use it in GitHub Desktop.
Save escamoteur/4d1abc797f9450c96029a083a0e9820a to your computer and use it in GitHub Desktop.
VS code settings
{
"breadcrumbs.enabled": true,
"editor.fontLigatures": true,
"editor.fontFamily": "Dank Mono",
"editor.fontSize": 18,
"workbench.iconTheme": "eq-material-theme-icons",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italic (=FlottFlott)
"comment",
"entity.name.type.class", //class names
"keyword", //import, export, return…
"constant", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js", //class keyword
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
//following will be excluded from italics (VSCode has some defaults for italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json"
],
"settings": {
"fontStyle": ""
}
}
]
},
"[dart]": {
"editor.suggest.insertMode": "insert",
"editor.formatOnSave": true,
"editor.formatOnType": true,
// Draw a guide line at 80 characters, where Dart's formatting will wrap code.
"editor.rulers": [
80
],
// By default, VS Code will populate code completion with words found in the
// current file when a language service does not provide its own completions.
// This results in code completion suggesting words when editing comments and
// strings. This setting will prevent that.
"editor.wordBasedSuggestions": false,
// By default, VS Code will pre-select the most recently used item from code
// completion. This is usually not the most relevant item.
//
// "first" will always select top item
// "recentlyUsedByPrefix" will filter the recently used items based on the
// text immediately preceeding where completion was invoked.
"editor.suggestSelection": "first",
},
"files.autoSave": "onFocusChange",
"editor.lineNumbers": "relative",
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.editor.openPositioning": "first",
"spellright.notificationClass": "information",
"dart.debugExternalLibraries": true,
"dart.debugSdkLibraries": true,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"FSharp.useSdkScripts": true,
"window.zoomLevel": 0,
"vim.easymotion": true,
"vim.surround": true,
"vim.handleKeys": {},
"vim.useSystemClipboard": true,
"vim.leader": "<Space>",
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": [
"j",
"j"
],
"after": [
"<ESC>"
]
},
],
"vim.commandLineModeKeyBindingsNonRecursive": [
{
"before": [
"ä"
],
"after": [
"/"
]
},
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": [
"J"
],
"after": [
"5",
"j"
]
},
{
"before": [
"K"
],
"after": [
"5",
"k"
]
},
{
// clear visual selection
"before": [
"<Leader>",
"j"
],
"after": [
"<ESC>"
]
},
{
// pastes inside a selection without override clipboard
"before": [
"p",
],
"after": [
"p",
"g",
"v",
"y"
]
},
{
// places cursor at the end of a visual seletion on yank
"before": [
"y",
],
"after": [
"y",
"g",
"v",
"<esc>"
]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
/// Moves cursor to the end of a pasted block
"before": [
"P"
],
"after": [
"g",
"P"
]
},
{
/// Moves cursor to the end of a pasted block
"before": [
"p"
],
"after": [
"g",
"p"
]
},
/// Undo/redo of vim is pretty unpredictable therefore map he VS code ones
{
"before": [
"u"
],
"commands": [
"undo",
]
},
{
"before": [
"<C-r>"
],
"commands": [
"redo",
]
},
/// Pastes content of register 0 which is typically the last yanked
{
"before": [
"<leader>",
"p"
],
"after": [
"\"",
"0",
"p"
]
},
{
"before": [
"<leader>",
"P"
],
"after": [
"\"",
"0",
"P"
]
},
/// with `x` deleted characters don't go to the clipboard
{
"before": [
"x"
],
"after": [
"\"",
"_",
"x"
]
},
/// delete a line without copy to clipboard
{
"before": [
"<leader>",
"d",
],
"after": [
"\"",
"_",
"d"
]
},
/// show the command palette
{
"before": [
"-"
],
"commands": [
"workbench.action.showCommands",
]
},
{
"before": [
"<leader>",
"m"
],
"commands": [
"bookmarks.toggle"
]
},
{
"before": [
"<leader>",
"b"
],
"commands": [
"bookmarks.list"
]
},
{
"before": [
"ä"
],
"after": [
"/"
]
},
/// clear search highlight
{
"before": [
"<Leader>",
"/"
],
"commands": [
":noh"
]
},
/// join lines override because we need `J` for down fast
{
"before": [
"<Leader>",
"j"
],
"after": [
"J"
]
},
/// move 5 down
{
"before": [
"J"
],
"after": [
"5",
"j"
]
},
// move 5 up
{
"before": [
"K"
],
"after": [
"5",
"k"
]
},
{
"before": [
"<Leader>",
"t",
"t"
],
"commands": [
":tabnew"
]
},
{
"before": [
"<Leader>",
"t",
"n"
],
"commands": [
":tabnext"
]
},
{
"before": [
"<Leader>",
"t",
"p"
],
"commands": [
":tabprev"
]
},
{
"before": [
"<Leader>",
"t",
"o"
],
"commands": [
":tabo"
]
},
/// select all
{
"before": [
"<Leader>",
"a",
],
"after": [
"1",
"G",
"V",
"G"
]
},
],
"workbench.colorTheme": "Visual Studio 2019 Dark",
"dart.previewLsp": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"dart.analyzerLogFile": "c:/temp/analyzer.log",
"vim.smartRelativeLine": true,
"vim.sneak": true,
"vim.sneakReplacesF": true,
"vim.sneakUseIgnorecaseAndSmartcase": true,
"dart.enableCompletionCommitCharacters": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment