在使用编辑器/IDE的过程中, 难免需要设置一些东西, 这里记录一下修改的参数, 日后可能会转移到 .dotfile 仓库中, 毕竟这里还是不太适合跨平台修改

VSCode

一些vscode的基本配置,下面的文件可以在 文件 -> 首选项 -> 设置 ,右上角的第一个文件(悬浮会显示打开更改)

{
    // Font
    "editor.fontFamily": "\"FiraCode Nerd Font Mono\"",
    "terminal.integrated.fontFamily": "\"FiraCode Nerd Font Mono\"",

    // VSCodeVim
    "vim.useSystemClipboard": true,
    "vim.leader": "<space>",
    "vim.vimrc.enable": true,
    "vim.surround": true,
    "vim.sneak": true,
    "vim.foldfix": true,

    // 显示.git文件
    "files.exclude": {
        "**/.git": false
    },
}

Available context keys 一些vscode的基本键盘配置,下面的文件可以在 文件 -> 首选项 -> 键盘快捷方式 ,右上角的第一个文件(悬浮会显示打开键盘快捷方式)

[
    {
        "key": "alt+h",
        "command": "workbench.action.navigateLeft",
    },
    {
        "key": "alt+j",
        "command": "workbench.action.navigateDown",
    },
    {
        "key": "alt+k",
        "command": "workbench.action.navigateUp",
    },
    {
        "key": "alt+l",
        "command": "workbench.action.navigateRight",
    },
    {
        "key": "alt+,",
        "command": "workbench.action.previousEditor",
    },
    {
        "key": "alt+.",
        "command": "workbench.action.nextEditor",
    },
    {
        "key": "alt+e",
        "command": "workbench.view.explorer"
    },
    {
        "key": "ctrl+j",
        "command": "workbench.action.quickOpenSelectNext",
        "when": "inQuickOpen"
    },
    {
        "key": "ctrl+k",
        "command": "workbench.action.quickOpenSelectPrevious",
        "when": "inQuickOpen"
    },

    /* FileExplorer */
    // open file or folder
    {
        "key": "o",
        "command": "explorer.openAndPassFocus",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus"
    },
    {
        "key": "o",
        "command": "list.select",
        "when": "listFocus && !inputFocus"
    },
    // open to side
    {
        "key": "ctrl+o",
        "command": "explorer.openToSide",
        "when": "explorerViewletFocus && foldersViewVisible && !inputFocus"
    },
    // delete
    {
        "key": "d",
        "command": "deleteFile",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus"
    },
    // create new file
    {
        "key": "a",
        "command": "explorer.newFile",
        "when": "filesExplorerFocus && foldersViewVisible && !inputFocus"
    },
    // cut
    {
        "key": "x",
        "command": "filesExplorer.cut",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    // copy
    {
        "key": "y",
        "command": "filesExplorer.copy",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !inputFocus"
    },
    // paste
    {
        "key": "p",
        "command": "filesExplorer.paste",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceReadonly && !inputFocus"
    },
    // fresh
    {
        "key": "R",
        "command": "workbench.files.action.refreshFilesExplorer",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
    // rename
    {
        "key": "r",
        "command": "renameFile",
        "when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
    },
]

.vscodevimrc(位于~/.vscodevimrc)

" Set Windows Keymaps "
nmap <Leader>ff actions.find
nmap <Leader><Leader><Leader> workbench.action.toggleFullScreen
nmap <Leader>wa workbench.action.toggleActivityBarVisibility
nmap <Leader>wb workbench.action.toggleSidebarVisibility
nmap <Leader>wt workbench.action.toggleMenuBar
nmap <Leader>wz workbench.action.toggleZenMode
nmap <Leader>b debug.toggleBreakpoint

" Set LSP Keymaps "
nmap <Leader>lf editor.action.formatDocument
nmap <Leader>la editor.action.quickFix
nmap [d editor.action.marker.prev
nmap ]d editor.action.marker.next
nmap K editor.action.showHover

在VSCode中设置Debug的一些问题

Variables Reference

Jetbrains

Vim/Neovim