Eclipse 缩进指南
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17961050/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Indent Guide
提问by William Grimes
I am trying to install an indentation guide plugin for eclipse from the following web page
我正在尝试从以下网页为 Eclipse 安装一个缩进指南插件
http://sschaef.github.io/IndentGuide/
http://sschaef.github.io/IndentGuide/
I have not installed plugins before in eclipse and would appreciate some help.
我之前没有在 eclipse 中安装过插件,希望得到一些帮助。
I have downloaded the file as a .zip and extracted it. Firstly I placed the file in the plugins folder but the file was not found. I then tried placing each of the contained folders 'pdt_tools.indentGuide', 'pdt_tools.indentGuide.feature' and 'pdt_tools.indentGuide.updateSite' in the eclipse plugins folder. This time when I go to Windows>Preferences>General>Editors>Text Editors>Indent Guide, I get an error 'An error has occured when creating this preference page'.
我已将文件下载为 .zip 并解压缩。首先,我将文件放在插件文件夹中,但未找到该文件。然后我尝试将每个包含的文件夹“pdt_tools.indentGuide”、“pdt_tools.indentGuide.feature”和“pdt_tools.indentGuide.updateSite”放在 eclipse 插件文件夹中。这次当我转到 Windows>Preferences>General>Editors>Text Editors>Indent Guide 时,我收到错误消息“创建此首选项页面时发生错误”。
'Unable to create the selected preference page. jp.sourceforge.pdt_tools.indentguide.preferences.IndentGuidePreferencePage cannot be found by jp.sourceforge.pdt_tools.indentGuide_1.3.2.v20120803'
'无法创建选定的首选项页面。jp.sourceforge.pdt_tools.indentguide.preferences.IndentGuidePreferencePage无法被jp.sourceforge.pdt_tools.indentGuide_1.3.2.v20120803'找到
Can anyone help me install this plugin?
谁能帮我安装这个插件?
回答by siddardha
Go to Help->"Install New Software" . In the window that opens you can find textbox with "type or select a site" - Enter http://sschaef.github.io/IndentGuide/update/press enter. The Grid below should refresh , select "Indent Guide" and complete installation.
转到帮助->“安装新软件”。在打开的窗口中,您可以找到带有“键入或选择站点”的文本框 - 输入http://sschaef.github.io/IndentGuide/update/按 Enter。下面的网格应该刷新,选择“缩进指南”并完成安装。
回答by EternityForest
No clue how to install from zip, but what I did was to take the "update URL" at the bottom of your link, put it into the box at the top of eclipse's help|Install New Software dialog, and install the plugin using eclipse's system. It work great for me and solves one of my major complaints with eclipse.
不知道如何从 zip 安装,但我所做的是获取链接底部的“更新 URL”,将其放入 eclipse 帮助|安装新软件对话框顶部的框中,然后使用 eclipse 的安装插件系统。它对我很有用,并解决了我对 eclipse 的主要抱怨之一。
回答by Michal Graffy
I installed it! Step to install (Maybe it's wrong steps) But ON my STS Based on eclipse 4.4 it's working! First:
我安装了!安装步骤(也许是错误的步骤)但是在我的基于 eclipse 4.4 的 STS 上它正在工作!第一的:
- Copy feature.xml from pdt_tools.indentGuide.feature into pdt_tools.indentGuide
- Open build.properties at pdt_tools.indentGuide
- Add "feature.xml" text to bin.includes = src/,\plugin.xml,\META-INF/,\OSGI-INF/ you will have:
- 将 feature.xml 从 pdt_tools.indentGuide.feature 复制到 pdt_tools.indentGuide
- 在 pdt_tools.indentGuide 打开 build.properties
- 将“feature.xml”文本添加到 bin.includes = src/,\plugin.xml,\META-INF/,\OSGI-INF/ 你将拥有:
source.. = src/ output.. = bin/ bin.includes = feature.xml,src/,\ plugin.xml,\ META-INF/,\ OSGI-INF/
source.. = src/ output.. = bin/ bin.includes = feature.xml,src/,\ plugin.xml,\ META-INF/,\ OSGI-INF/
- Then Copy all files without ".project" from pdt_tools.indentGuide.updateSite to pdt_tools.indentGuide
- Then go Help->Install new software->Add...->Local->(Select pdt_tools.indentGuide.updateSite) and install!
- 然后将所有没有“.project”的文件从 pdt_tools.indentGuide.updateSite 复制到 pdt_tools.indentGuide
- 然后去帮助->安装新软件->添加...->本地->(选择pdt_tools.indentGuide.updateSite)并安装!
Got IT!
知道了!