vscode

快捷键配置

workbench.view.explorer -> cmd + E
workbench.action.previousEditor -> shift+ h
workbench.action.nextEditor -> shift + l
go to definition -> ctr+ "=" -> 跳转到定义
workbench.view.explorer -> cmd + E -> 跳转到文件explorer
Go to Symbol in Editor -> cmd + M-> 搜索所有符号
Explorer: Focus on Outline View -> cmd + U -> 跳转到代码OUTLINE
TRAE AI Add to Chat -> cmd + t (选中代码后,需要先右击一下,才能将代码加入对话)
TRAE AI Explain Code -> cmd + g

vscode配置

{
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "security.workspace.trust.untrustedFiles": "open",
    "cmake.configureOnOpen": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "vim.leader": ",",
    "vim.normalModeKeyBindings": [
        {
            "before": ["<leader>", "b"],
            "after": [
                "O", "i", "m", "p", "o", "r", "t", " ", "i", "p", "d", "b", ";", " ",
                "i", "p", "d", "b", ".", "s", "e", "t", "_", "t", "r", "a", "c", "e", "(", ")",
                "<Esc>",
            ]
        },
        {
            "before": ["<leader>", "c"],
            "after": [
                "O", "f", "r", "o", "m", " ", "I", "P", "y", "t", "h", "o", "n", " ",
                "i", "m", "p", "o", "r", "t", " ", "e", "m", "b", "e", "d", ";",
                "e", "m", "b", "e", "d", "(", ")", ";", " ",
                "e", "x", "i", "t", "(", ")", ";",
                "<Esc>",
            ]
        },
        {
            "before": ["<leader>", "t"],
            "after": [
                "O", "#", " ", "t", "o", "d", "o", "_", "b", "y", "_", "w", "y", "j", "<Esc>"
            ]
        },
        {
            "before": ["<leader>", "d"],
            "after": [
                "O", "#", " ", "=", "=", "=", "=", " ", "d", "i", "f", "f", " ", "s", "t", "a", "r", "t", " ", "=", "=", "=", "=", "\n",
                "#", " ", "=", "=", "=", "=", " ", "d", "i", "f", "f", " ", "e", "n", "d", " ", " ", " ", "=", "=", "=", "=", "<Esc>"
            ]
        }
    ],
    "C_Cpp.autocompleteAddParentheses": true,
    "C_Cpp.intelliSenseUpdateDelay": 500,
    "C_Cpp.files.exclude": {
        "**/aipack": true,
        "**/.vscode": true,
        "**/.vs": true
    },
    "cmake.showOptionsMovedNotification": false,
    "python.analysis.exclude": [
        "**software, **extra_data, .git, **spaceport, **outputs"
    ],
    "[cpp]": {
        "editor.defaultFormatter": "ms-iot.vscode-ros"
    },
    "files.watcherExclude": {
        // "**/log/**": true,
        "**/output/**": true,
        "*/**/node_modules/": true,
        "*/**/.pytest_cache/": true,
        "*/**/__pycache__/": true,
        "*.so": true,
    },
    "window.zoomLevel": 1,
    "latex-workshop.latex.recipes": [
        {
            "name": "pdflatex -> bibtex -> pdflatex 2",
            "tools": [
                "pdflatex",
                "bibtex",
                "pdflatex",
                "pdflatex"
            ]
        }
    ],
    "latex-workshop.latex.tools": [
        {
            "name": "xelatex",
            "command": "/Library/TeX/texbin/xelatex",    //添加编译的参数
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOCFILE%",
                "-outdir=%OUTDIR%"
            ]
        },
        {
            "name": "pdflatex",
            "command": "/Library/TeX/texbin/pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOC%"
            ]
        },
        {
            "name": "biber",
            "command": "biber",
            "args": [
                "%DOCFILE%"
            ]
        },
        {
            "name": "latexmk",
            "command": "/Library/TeX/texbin/latexmk",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "-outdir=%OUTDIR%",
                "%DOCFILE%"
            ]
        },
        {
            "name": "bibtex",
            "command": "/Library/TeX/texbin/bibtex",
            "args": [
                "%DOCFILE%"
            ]
        }
    ],
    "terminal.integrated.env.osx": {
        "PATH": "/Library/TeX/texbin:$PATH"
    },
    "editor.fontLigatures": false,
    "editor.codeActionsOnSave": {
    
    },
    "notebook.outline.showCodeCells": true,
    "clangd.detectExtensionConflicts": false,
}
posted @ 2025-06-21 11:27  fariver  阅读(17)  评论(0)    收藏  举报