在记事本中自动缩进++ [英] Auto-indent in Notepad++

查看:188
本文介绍了在记事本中自动缩进++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们总是这样写代码:

  void main(){
if(){
if()
}



但是当我使用,我有进行设置,但不会生效。快照如下:





我使用的是Notepad ++版本5.1.3。

解决方案

Notepad ++仅如果您手动缩进块中的第一行,则自动插入后续缩进;否则,您可以在 TextFX>之后重新缩进代码TextFX编辑>重新插入C ++代码


We always write code like this formal:

void main(){
  if(){
    if()
    }

But when I use Notepad++, the display is:

void main(){
if(){
if()
}

How do I use Notepad++ to auto indent?

Thanks to Jonathan, I have set it, but it does not take any effect. The snapshot is below:

I am using Notepad++ version 5.1.3.

解决方案

Notepad++ will only auto-insert subsequent indents if you manually indent the first line in a block; otherwise you can re-indent your code after the fact using TextFX > TextFX Edit > Reindent C++ code.

这篇关于在记事本中自动缩进++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆