Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Sublime Text 进行 JavaScript 开发,我使用制表符进行缩进。
但是,对于 Python 开发,我需要使用空格(根据 PEP-8)。那么我应该更改哪些配置指令以支持两者。
(我对 Sublime Text 很陌生)
您可以创建特定于语法的配置。Preferences -> Settings - More ->Syntax Specific - User. 添加以下配置"translate_tabs_to_spaces": false,根据需要设置布尔值。
Preferences -> Settings - More ->Syntax Specific - User
"translate_tabs_to_spaces": false