eclipse代码编辑缩进线(Indent Guide)插件安装

    我想很多人也跟我一样,想用eclipse的时候也出现代码编辑缩进线,代码还看起来舒服很多,如下效果:


        首先去下载插件,在网上查了很多都是这个网址https://sschaef.github.io/IndentGuide,但是这个网址现在进不去,还好运气好还是让我找到网址了,这个网址可用:https://github.com/kiritsuku/IndentGuide,下载下来插件,我们再看看如何安装,因为我不会安装,我怕有人跟我一样,所以在这里说一下安装步骤,我是从https://stackoverflow.com/questions/17961050/eclipse-indent-guide,这里学到的,我把安装步骤截图下来,如下所示:


    看得懂其实就按上面的步骤来就可以了,我就是按照这个步骤安装好的,不过我还是解释一下上面的安装步骤,下载好插件后,解压后如何如下:


上面的安装步骤:

1、将pdt_tools.indentGuide.feature目录下的feature.xml文件复制到pdt_tools.indentGuide目录下;

2、打开pdt_tools.indentGuide目录下的build.properties文件;

source.. = src/
    output.. = bin/
    bin.includes = feature.xml,src/,\
                       plugin.xml,\
                       META-INF/,\
                       OSGI-INF/

3、在bin.includes = src/,\plugin.xml,\META-INF/,\OSGI-INF/ 后面加上feature.xml,效果如下:

source.. = src/
output.. = bin/
bin.includes = src/,\feature.xml
               plugin.xml,\feature.xml
               META-INF/,\feature.xml
               OSGI-INF/feature.xml

4、将pdt_tools.indentGuide.updateSite目录下的所有文件,除了.project,复制到pdt_tools.indentGuide目录下;

扫描二维码关注公众号,回复: 963906 查看本文章

5、在eclipse中打开Help -> Install new software -> add -> Local -> 选择pdt_tools.indentGuide.updateSite目录,点击安装,就OK啦

重启eclipse就可以了,打开Window -> preferences -> General -> Editors -> Text Editors, 如果有Indent Guide目录就表示安装好了,如下图:



猜你喜欢

转载自blog.csdn.net/xingkongdeasi/article/details/80212632