vscode setting
{
//restore
"window.restoreWindows": "none",
"files.hotExit": "off",
//window
"window.title": "${rootName}${separator}${activeEditorLong}${separator}${dirty}",
"editor.fontSize": 14,
"editor.mouseWheelZoom": true,
"editor.smoothScrolling": true,
"editor.mouseWheelScrollSensitivity": 1,
//cursor
"editor.cursorStyle": "block",
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": "on",
"editor.wordWrap": "off",
// 在 "editor.wordWrap" 为 "wordWrapColumn" 或 "bounded" 时控制编辑器列的换行。
//"editor.wordWrapColumn": 180,
// 控制边栏的位置。它可显示在工作台的左侧或右侧。
"workbench.sideBar.location": "left",
"window.openFilesInNewWindow": "on",
// 读取和编写文件时将使用的默认字符集编码。
"files.encoding": "utf8",
// 默认行尾字符。
"files.eol": "\n",
"editor.fontFamily": "Sarasa Fixed SC",
"files.autoGuessEncoding": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorCustomizations": {
"editorCursor.foreground": "#7fff00",
"tab.activeBorder": "#7fff00",
"tab.border": "#6d6c6c",
"tab.unfocusedActiveBorder": "#cca0e9",
"tab.activeBackground": "#696969"
},
//空白符号处理
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": true,
"editor.detectIndentation": true,
"editor.insertSpaces": true,
"editor.tabSize": 4,
"editor.trimAutoWhitespace": false,
"editor.multiCursorModifier": "alt",
"workbench.editor.showTabs": "multiple",
"files.trimFinalNewlines": false,
"files.trimTrailingWhitespace": false,
//bookmarks
"bookmarks.navigateThroughAllFiles": true,
"bookmarks.saveBookmarksInProject": false,
//git
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false
},
"editor.showFoldingControls": "always",
"editor.folding": true,
"editor.foldingStrategy": "indentation",
//=======================================================================
//terminal
"terminal.integrated.fontSize": 13,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "block",
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.rightClickBehavior":"selectWord",
"terminal.integrated.scrollback":999999,
"terminal.integrated.defaultLocation":"view",
//=======================================================================
"explorer.openEditors.visible" : 0,
"workbench.list.horizontalScrolling": true,
"workbench.startupEditor": "newUntitledFile",
"breadcrumbs.enabled": true,
"workbench.editor.highlightModifiedTabs": true,
"search.showLineNumbers": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
//=======================================================================
// 配置语言的文件关联(如: "*.extension": "html")。这些关联的优先级高于已安装语言的默认关联。
"files.associations": {
"*.txt": "cmake"
},
"files.exclude": {
"**/.git": true,
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"search.exclude": {
// "**/node_modules": true,
// "**/bower_components": true
},
"projectManager.any.maxDepthRecursion": 9,
"projectManager.git.maxDepthRecursion": 9,
"projectManager.groupList": true,
"projectManager.vscode.maxDepthRecursion": 9,
"projectManager.cacheProjectsBetweenSessions": false,
//=======================================================================
"editor.rulers": [
{
"column": 80,
"color": "#333333"
},
{
"column": 100,
"color": "#444444"
},
{
"column": 120,
"color": "#555555"
},
{
"column": 140,
"color": "#777777"
}
],
//=======================================================================
"explorer.openEditors.sortOrder": "alphabetical",
"search.maxResults": null,
"search.useIgnoreFiles": false,
"search.followSymlinks": false,
"extensions.autoCheckUpdates": false,
"settingsSync.keybindingsPerPlatform": false,
"files.autoSaveDelay": 20000,
"files.autoSave": "afterDelay",
"explorer.autoReveal": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.autoIndent": "none",
"editor.guides.indentation": false,
//security
"security.workspace.trust.untrustedFiles": "open",
//update
"go.toolsManagement.checkForUpdates": "off",
"update.enableWindowsBackgroundUpdates": false,
"update.mode": "none",
"extensions.ignoreRecommendations": true,
"extensions.autoUpdate": false,
"powershell.promptToUpdatePowerShell": false,
//--------------------------------------------------------------------------
// commands
//--------------------------------------------------------------------------
"editor.cursorSurroundingLines": 1,
"commands.variableSubstitutionEnabled": true,
//Commands Alexander
"commands.commands": {
"Viewport.scrollTop": {
"command": "revealLine",
"args": {
"lineNumber": "${lineNumber}",
"at": "top",
}
},
"Viewport.scrollCenter": {
"command": "revealLine",
"args": {
"lineNumber": "${lineNumber}",
"at": "center",
}
},
"Viewport.scrollBottom": {
"command": "revealLine",
"args": {
"lineNumber": "${lineNumber}",
"at": "bottom",
}
},
"Viewport.CursorTop": {
"command": "cursorMove",
"args": {
"to": "viewPortTop"
}
},
"Viewport.CursorCenter": {
"command": "cursorMove",
"args": {
"to": "viewPortCenter"
}
},
"Viewport.CursorBottom": {
"command": "cursorMove",
"args": {
"to": "viewPortBottom"
}
},
},
//--------------------------------------------------------------------------
// other stuff
//--------------------------------------------------------------------------
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
//latex workshop
"latex-workshop.latex.autoBuild.cleanAndRetry.enabled": false,
"latex-workshop.message.update.show": false,
"latex-workshop.latex.autoBuild.run": "never",
"latex-workshop.view.pdf.viewer": "tab",
"[javascript]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode"
},
"eslint.format.enable": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
"[java]": {
"editor.defaultFormatter": "redhat.java"
},
"C_Cpp.intelliSenseEngine": "disabled",
"diffEditor.ignoreTrimWhitespace": false,
"clangd.arguments": [
"-header-insertion=never"
],
"gitlens.views.repositories.files.layout": "tree",
"java.errors.incompleteClasspath.severity": "ignore",
"[cpp]": {"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}},
"[c]": {"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
"cmake.configureOnOpen": false,
"git.openRepositoryInParentFolders": "never",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.stickyScroll.enabled": true,
//telemetry
"redhat.telemetry.enabled": false,
"telemetry.telemetryLevel": "off",
"partialDiff.enableTelemetry": false,
"code-runner.enableAppInsights": false,
"gitlens.telemetry.enabled": false,
"applescript.disableTelemetry": true,
"textmarker.enableTelemetry": false,
"clangd.path": "",
"cmake.showOptionsMovedNotification": false,
"hediet.vscode-drawio.resizeImages": null,
"diffviewer.outputFormat": "side-by-side",
"explorer.fileNesting.patterns": {
"*.ts": "${capture}.js",
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.tsx": "${capture}.ts",
"tsconfig.json": "tsconfig.*.json",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb",
"Cargo.toml": "Cargo.lock",
"*.sqlite": "${capture}.${extname}-*",
"*.db": "${capture}.${extname}-*",
"*.sqlite3": "${capture}.${extname}-*",
"*.db3": "${capture}.${extname}-*",
"*.sdb": "${capture}.${extname}-*",
"*.s3db": "${capture}.${extname}-*"
},
"rest-client.enableTelemetry": false,
"telemetry.geriyocoImageGallery.isTelemetryEnabled": false,
"guides.sendUsagesAndStats": false,
"editor.minimap.enabled": false,
"chat.commandCenter.enabled": false,
"highlightLine.borderColor": "#696969",
"highlightLine.borderWidth": "1px",
}
需要的command 插件
Commands
作者 Alexander