ScintillaNET中的缩进和智能缩进 [英] Indentation and smart indent in ScintillaNET
本文介绍了ScintillaNET中的缩进和智能缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以描述我如何在Scintilla.net中进行缩进吗?
Can someone describe me how to make indentation work in Scintilla.net?
this.scintilla1.Indentation.SmartIndentType = ScintillaNet.SmartIndent.Simple;
我对要使其正常工作需要做什么感到困惑.有人可以描述需要执行哪些事件处理程序才能使缩进起作用吗?
I'm confused on what needs to be done to get it to work. Can someone describe what event handlers need to be implemented to get indentation to work?
推荐答案
如果Indentation.TabWidth
也设置为8
,则技巧是将Indentation.IndentWidth
设置为8
.
The trick is to set Indentation.IndentWidth
to 8
, if Indentation.TabWidth
is also set to 8
.
当然Indentation.SmartIndentType
仍必须设置为Simple
.
这篇关于ScintillaNET中的缩进和智能缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文