Skip to content

Instantly share code, notes, and snippets.

@bitterteasweetorange
Last active October 4, 2024 14:49
Show Gist options
  • Save bitterteasweetorange/78e9a204734abb389adf9acfd9f0997b to your computer and use it in GitHub Desktop.
Save bitterteasweetorange/78e9a204734abb389adf9acfd9f0997b to your computer and use it in GitHub Desktop.
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
{
"command": "undo_expand_region",
"key": "ctrl+-",
"when": "editorTextFocus && editorHasSelection"
},
{
"command": "workbench.action.toggleSidebarVisibility",
"key": "ctrl+e"
},
{
"command": "workbench.files.action.focusFilesExplorer",
"key": "ctrl+e",
"when": "editorTextFocus"
},
{
"command": "explorer.newFile",
"key": "a",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "renameFile",
"key": "r",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "filesExplorer.copy",
"key": "c",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "filesExplorer.paste",
"key": "p",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "deleteFile",
"key": "d",
"when": "filesExplorerFocus && !inputFocus"
},
{
"command": "editor.action.addSelectionToNextFindMatch",
"key": "ctrl+n",
"when": "editorFocus"
},
{
"command": "editor.action.addSelectionToNextFindMatch",
"key": "ctrl+n",
"when": "editorFocus"
},
{
"command": "-workbench.action.files.save",
"key": "cmd+s"
},
{
"command": "saveAll",
"key": "cmd+s"
},
{
"command": "-editor.action.addSelectionToNextFindMatch",
"key": "cmd+d",
"when": "editorFocus"
},
{
"command": "-extension.vim_cmd+d",
"key": "cmd+d",
"when": "editorTextFocus && vim.active && vim.use<D-d> && !inDebugRepl"
},
{
"command": "workbench.action.splitEditor",
"key": "cmd+d"
},
{
"command": "-workbench.action.splitEditor",
"key": "cmd+\\"
},
{
"command": "turboConsoleLog.displayLogMessage",
"key": "cmd+i"
},
{
"command": "-turboConsoleLog.displayLogMessage",
"key": "ctrl+alt+l"
},
{
"command": "-undo",
"key": "cmd+z"
},
{
"command": "-interactiveEditor.unstash",
"key": "cmd+z",
"when": "interactiveEditorHasStashedSession && !editorReadonly"
},
{
"command": "workbench.action.toggleZenMode",
"key": "cmd+z"
},
{
"command": "-workbench.action.toggleZenMode",
"key": "cmd+k z"
},
{
"command": "-editor.action.selectAll",
"key": "cmd+a"
},
{
"command": "editor.action.selectAll",
"key": "cmd+a"
},
{
"command": "workbench.action.terminal.toggleTerminal",
"key": "ctrl+\\",
"when": "terminal.active"
},
{
"command": "-workbench.action.terminal.toggleTerminal",
"key": "ctrl+`",
"when": "terminal.active"
}
]
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[prisma]": {
"editor.defaultFormatter": "Prisma.prisma"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.addMissingImports": true,
"source.organizeImports": true
},
"editor.cursorSmoothCaretAnimation": "on",
"editor.cursorSurroundingLines": 5,
"editor.fontFamily": "CaskaydiaCove Nerd Font",
"editor.fontLigatures": true,
"editor.fontSize": 18,
"editor.fontWeight": "300",
"editor.formatOnSave": true,
"editor.inlineSuggest.enabled": true,
"editor.lineNumbers": "relative",
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.smoothScrolling": true,
"editor.stickyScroll.enabled": true,
"editor.suggest.insertMode": "replace",
"editor.suggestFontSize": 14,
"editor.wordWrap": "on",
"errorLens.fontStyleItalic": true,
"everforest.italicKeywords": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"extensions.autoUpdate": "onlyEnabledExtensions",
"extensions.ignoreRecommendations": false,
"files.exclude": {
"**/node_modules": true
},
"prettier.semi": false,
"prettier.singleAttributePerLine": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "all",
"projectManager.git.baseFolders": [
"$home/workspace"
],
"projectManager.sortList": "Recent",
"sortJSON.orderOverride": [
"name",
"version",
"main",
"module",
"types",
"typings",
"files",
"publishConfig",
"repository",
"scripts",
"prefix",
"description",
"body"
],
"sortJSON.orderUnderride": [
"resolutions",
"dependencies",
"devDependencies",
"peerDependencies",
"cSpell.userWords"
],
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.updateImportsOnFileMove.enabled": "always",
"update.showReleaseNotes": false,
"vim.foldfix": true,
"vim.highlightedyank.color": "rgba(230, 97, 89, 0.7)",
"vim.highlightedyank.enable": true,
"vim.highlightedyank.textColor": "white",
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"leader",
"r"
],
"commands": [
"editor.action.rename"
]
},
{
"before": [
"leader",
"w"
],
"commands": [
":w!"
]
},
{
"before": [
"leader",
"q"
],
"commands": [
":q!"
]
},
{
"before": [
"leader",
"x"
],
"commands": [
":x!"
]
},
{
"after": [
"g",
"g",
"V",
"G"
],
"before": [
"<c-a>"
]
},
{
"before": [
"<leader>",
"k"
],
"commands": [
"editor.action.showHover"
]
},
{
"before": [
"[",
"d"
],
"commands": [
"editor.action.marker.prev"
]
},
{
"before": [
"]",
"d"
],
"commands": [
"editor.action.marker.next"
]
},
{
"before": [
"<leader>",
"c",
"a"
],
"commands": [
"editor.action.quickFix"
]
},
{
"after": [
"^"
],
"before": [
"H"
]
},
{
"after": [
"$"
],
"before": [
"L"
]
},
{
"before": [
"leader",
"i"
],
"commands": [
"extension.toggleBool"
]
}
],
"vim.useSystemClipboard": true,
"window.zoomLevel": 1,
"workbench.colorTheme": "Everforest Light",
"workbench.iconTheme": "material-icon-theme",
"workbench.settings.editor": "json",
"workbench.startupEditor": "readme",
"zenMode.hideLineNumbers": false
}
@gazzaar
Copy link

gazzaar commented Sep 2, 2024

This is very good my friend, thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment