Vs code auto indenting not working for python

折月煮酒 提交于 2019-12-11 01:34:37

问题


I’m new to visual studio code, just switched from sublime text 3. I was writing a simple if statement and when I write else: like that, on ST3 it would move the else to under if but this doesn’t happen with vscode. I’ve tried everything and looked everywhere but doesn’t seem to work. Any ideas of why? Or does vscode really lack this basic fundamental feature?


回答1:


This is a known issue that requires a non-trivial implementation of a custom indentation provider.



来源:https://stackoverflow.com/questions/51233466/vs-code-auto-indenting-not-working-for-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!