在Notepad ++中为Python自动缩进 [英] Automatic indentation for Python in Notepad++
本文介绍了在Notepad ++中为Python自动缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在搜索很多东西,这真令人沮丧.它不像闲置.
I've been googling lots and this is getting really frustrating. It doesn't act like idle.
示例:
else:
name = 'World'
print 'Howdy', name
print 'yay'
但在记事本++中
else: # i press enter and this is what it does
lands me here
但是我希望能够像在空闲时一样:在:
之后,我可以按Enter并继续前进.我的英语不太好.
But I want to be able to do like in idle: after the :
I can just press enter and keep on going. My English isn't that great.
我的文件类型设置为Python等,格式设置为Unix.
I have my filetype set to Python etc. and my format to unix.
推荐答案
这就是您想要的:
设置>首选项> MISC. >自动缩进(复选框)
Settings > Preferences > MISC. > Auto-Indent (checkbox)
-
有时人们会问:我如何在程序y中执行x?"
Sometimes people ask, "How can I do x in program y?"
我有一个梦想,有一天使用代替程序z"将不是最受欢迎的回答.
I have a dream that one day "Use program z instead" will not be the most popular response.
这篇关于在Notepad ++中为Python自动缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文