VS CODE Python开发环境配置

 1 {
 2     // 控制已更新文件的自动保存。可在[此处](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save)阅读有关自动保存的详细信息。
 3     //  - off: 永不自动保存更新后的文件。
 4     //  - afterDelay: 当文件修改后的时间超过 `files.autoSaveDelay` 中配置的值时自动进行保存。
 5     //  - onFocusChange: 编辑器失去焦点时自动保存更新后的文件。
 6     //  - onWindowChange: 窗口失去焦点时自动保存更新后的文件。
 7     "files.autoSave": "onFocusChange",
 8     // 以像素为单位控制字体大小。
 9     "editor.fontSize": 20,
10     // 控制折行的方式。
11     //  - off: 永不换行。
12     //  - on: 将在视区宽度处换行。
13     //  - wordWrapColumn: 在 `editor.wordWrapColumn` 处折行。
14     //  - bounded: 在视区宽度和 `editor.wordWrapColumn` 中的较小值处折行。
15     "editor.wordWrap": "on",
16     // 在 `editor.wordWrap` 为 `wordWrapColumn`  或 `bounded` 时,控制编辑器的折行列。
17     "editor.wordWrapColumn": 400,
18     // 在保存上格式化文件。格式化程序必须可用,延迟后文件不能保存,并且编辑器不能关闭。
19     "editor.formatOnSave": true,
20     // 控制编辑器在键入一行后是否自动格式化该行。
21     "editor.formatOnType": true,
22     // 调整窗口的缩放级别。原始大小是 0,每次递增(例如 1)或递减(例如 -1)表示放大或缩小 20%。也可以输入小数以便以更精细的粒度调整缩放级别。
23     "window.zoomLevel": 1.5,
24     // Arguments passed in. Each argument is a separate item in the array.
25     "python.linting.flake8Args": [
26         "--max-line-length=400"
27     ],
28     // Whether to lint Python files using flake8
29     "python.linting.flake8Enabled": true,
30     // Whether to install Python modules globally when not using an environment.
31     "python.globalModuleInstallation": true,
32     "editor.renderIndentGuides": false,
33     "terminal.integrated.fontSize": 20,
34     // Arguments passed in. Each argument is a separate item in the array.
35     "python.formatting.yapfArgs": [
36         "{COLUMN_LIMIT: 400}"
37     ],
38     "editor.wrappingIndent": "deepIndent",
39     "python.formatting.provider": "yapf",
40     // Arguments passed in. Each argument is a separate item in the array.
41     "python.formatting.blackArgs": [
42         "--lin-length=400"
43     ],
44     "html.format.wrapLineLength": 400
45 }

猜你喜欢

转载自www.cnblogs.com/mcgill0217/p/10300461.html