Try the following keystrokes:
gg=G
Explanation: gg
goes to the top of the file, =
is a command to fix the indentation andG
tells it to perform the operation to the end of the file.
1) 如何规范当前编辑的代码文件,让他们按照括号的先后缩进。
Try the following keystrokes:
gg=G
Explanation: gg
goes to the top of the file, =
is a command to fix the indentation andG
tells it to perform the operation to the end of the file.
2) 如何选择一个括号内所有内容
首先把光标放在一个括号上。
然后 v %
3) 高亮选中的内容
:set hlsearch