这可能是一个简单的问题,但我的visual studio Python工具有问题。当我第一次开始为Python使用VS2015时,每当我使用冒号时,它就会自动缩进。现在VS2015就像一个语法突出显示的文本编辑器。我试着卸载并重新安装Python工具,但是没有成功。当我再次编写Python时,如何将Visual Studio修复为自动样式?
However, the most common (and default) mode is “Smart.” Unlike the other two modes, which are built into the editor, smart indentation is provided by a language service (which are also responsible for providing syntax highlighting and completions). Because they are targeted to a specific language, they can help the programmer by automatically adding and removing extra indentation in ways that make sense.
在Visual Studio中试试这个
http://stevedower.id.au/blog/smart-indentation-for-python/
Tools -> Options -> Text editor -> Python -> Tabs
并将其设置为Smart
相关问题 更多 >
编程相关推荐