vscode控制outline不显示变量
vscode编辑器相关问题
·
1、通过修改settings.json可控制
参考outline.showVariables变量
{
"tabnine.experimentalAutoImports": true,
"files.autoSave": "afterDelay",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"editor.mouseWheelZoom": true,
"terminal.integrated.mouseWheelZoom": true,
"containers.containerClient": "com.microsoft.visualstudio.containers.docker",
"containers.orchestratorClient": "com.microsoft.visualstudio.orchestrators.dockercompose",
"cmake.skipConfigureIfCachePresent": true,
"remote.SSH.enableRemoteCommand": true,
"workbench.colorTheme": "Theme",
"C_Cpp.errorSquiggles": "enabled",
"DockerRun.DisableAutoGenerateConfig": true,
"pylint.importStrategy": "fromEnvironment",
"editor.codeActionsOnSave": {
},
"pylint.severity": {
"convention": "Information", // 常规问题显示为信息
"error": "Error", // 错误显示为错误
"fatal": "Error", // 致命错误显示为错误
"refactor": "Hint", // 重构建议显示为提示
"warning": "Warning", // 警告显示为警告
"info": "Information", // 信息显示为信息
"W0611": "Error", // 可以针对特定错误码设置级别
"undefined-variable": "Warning" // 也可以针对特定错误类型设置
},
"pylint.showNotifications": "onError",
"pylint.args": [
"--errors-only",
"\"--extension-pkg-whitelist=cv2\""
],
"notebook.stickyScroll.enabled": true,
"terminal.integrated.stickyScroll.enabled": true,
"editor.stickyScroll.defaultModel": "indentationModel",
"python.linting.pylintArgs": [
"--extension-pkg-whitelist=cv2"
],
"python.terminal.executeInFileDir": true,
"code-runner.fileDirectoryAsCwd": true,
"outline.showVariables": false,
"terminal.integrated.fontSize": 17,
"outline-map.hiddenItem": [
"variable"
],
"workbench.editorAssociations": {
"{git,gitlens}:/**/*.{md,csv,svg}": "default"
},
"database-client.autoSync": true,
"editor.stickyScroll.maxLineCount": 15, # 粘滞滚动
"workbench.iconTheme": "material-icon-theme",
"hediet.vscode-drawio.resizeImages": null,
}
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)