Eclipse - installation Indent Guide, the JAVA code editor with indented lines, and Delphi as cool! !

Inside there is a default Delphi code editor indented line, which is very good, it is clear that the scope of each block of code to write complex logic in chunks of code when the following is the Delphi code editor inside indented lines screenshot:

Great effect, I like, when dealing with complex logic code, this feature is very useful, which is part of a complex method of code I wrote, I have not seen all of it, if there is no such code editor indented line, should now there is no happiness! ! !

 Eclipse default Without this feature, I really hope it can also have this feature, after some effort, finally we did it! !

I have IndentGuide plug-processed, we can take over directly installed!

Deal with plug-in download address:

Official Website: https://github.com/kiritsuku/IndentGuide

Official Plugins Download: https://codeload.github.com/kiritsuku/IndentGuide/zip/master

First, the installation :

1, the IndentGuide downloaded to decompress, and then open Eclipse, click on the menu "Help" -> "Install New SoftWear".

2, in the pop-up dialog box, click on the "Add" button.

3, "name" text box are free to enter; click on the "local" button to select the extracted IndentGuide directory "pdt_tools.indentGuide" directory in the dialog box, and then click "Select Folder" button below, then install on it.

Attention to the problem:

1, the installation process need to download some plug-ins, you need to take some time to see the progress of the lower right corner of the Eclipse, can not see, wait on it, installed Eclipse prompt box will pop up, this time it was installed, do not close early Eclipse, otherwise it is not successfully installed.

2,成功安装完毕后,在打开的代码上鼠标右键,选择“Open With”->"Text Editor",这样才会使IndentGuide生效,随后再用Java Editor打开代码就正常了!!

二,配置

IndentGuide默认的代码编辑缩进线是点的,而且换行处断开,我不喜欢,我喜欢Delphi格式,中间没有断开,而且是实心线,通过配置可以做到!

打开Window -> preferences -> General -> Editors -> Text Editors  -> indent Guide,在右侧的配置中处理:

最终代码代码编辑缩进线的效果:

参考:

https://blog.csdn.net/xingkongdeasi/article/details/80212632

 

Guess you like

Origin www.cnblogs.com/sunylat/p/10958826.html