是否有用于 Eclipse 的颜色选择器插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1471546/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 18:56:45  来源:igfitidea点击:

Is there a color picker plugin for Eclipse?

eclipseeclipse-pdt

提问by Martin

I'm using Eclipse Galileo PDT for my work. I also use it to edit my CSS files.

我在工作中使用 Eclipse Galileo PDT。我也用它来编辑我的 CSS 文件。

Is there a plugin that lets me pick a color (from a palette or even anywhere from the screen) and wich returns the HEX value of that color into my CSS file?

是否有一个插件可以让我选择一种颜色(从调色板甚至屏幕上的任何地方)并将该颜色的十六进制值返回到我的 CSS 文件中?

采纳答案by Nick Siderakis

Aptana Studio has really great support for CSS. CSS color picking is easy, you can grab a color from anywhere on the screen.

Aptana Studio 对 CSS 有很好的支持。CSS 颜色选择很容易,您可以从屏幕上的任何位置获取颜色。

You can install Aptana as a plug into an existing Eclipse installation. http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

您可以将 Aptana 作为插件安装到现有的 Eclipse 安装中。 http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

alt text

替代文字

回答by Paul Verest

Jspresso Colors 'n Fonts

Jspresso Colors 'n 字体

Just select any java string literal and right click on it to open the contextual popup menu... then select Jspresso>Choose Color... or select Jspresso>Choose Font...

Supports also tooltip : fly over your string literal to display the current color or font... and activate hyperlink to open the editor popup !

只需选择任何 java 字符串文字并右键单击它以打开上下文弹出菜单...然后选择 Jspresso>Choose Color... 或选择 Jspresso>Choose Font...

还支持工具提示:飞过您的字符串文字以显示当前颜色或字体...并激活超链接以打开编辑器弹出窗口!

回答by fmjrey

I created a Groovy Monkeyscript that opens Eclipse's color picker. It was inspired by what fornwall pointed at (second example of Eclipse Script plugin). It's also able to recognize if current selection is a color so it can be selected it in the picker.

我创建了一个Groovy Monkey脚本来打开 Eclipse 的颜色选择器。它的灵感来自于 fornwall 所指的内容(Eclipse 脚本插件的第二个示例)。它还能够识别当前选择是否是一种颜色,以便可以在选择器中选择它。

The script is on gist.github, instructions included.

该脚本位于gist.github 上,包括说明。

Having a shortcut key for a script is not (yet?) possiblein Groovy Monkey, but Crtl+Alt+M runs the last executed script.

在 Groovy Monkey 中还不能(还?)拥有脚本快捷键,但 Crtl+Alt+M 运行最后执行的脚本。

回答by fmjrey

A good plugin to consider is the Designerator Color Plugin from the Designeratorproject. It contributes a Colors view as explained in this blog post. No need to install the whole software, the color view is in a separate feature that can be installed by itself.

一个值得考虑的好插件是来自Designer项目的 Designer Color Plugin 。它提供了一个 Colors 视图,如本文中所述。无需安装整个软件,颜色视图在一个单独的功能中,可以自行安装。

The Sampler plugincould also be of interest. However it does not show a color picker dialog where one can select a color, it only has the color picker tool for selecting a color from the screen.

取样器插件也可能会感兴趣。但是,它没有显示可以选择颜色的颜色选择器对话框,它只有用于从屏幕中选择颜色的颜色选择器工具。

回答by Rich Seller

There are a few plugins at the Eclipse plugins sitethat might meet your needs.

Eclipse 插件站点上有一些插件可能会满足您的需求。

CSS Designerlooks promising:

CSS Designer看起来很有前途:

JointLogic CSS Designer is an Eclipse plugin that provides CSS authoring facilities like - CSS Styles view, CSS declaration designer with preview and web-oriented color picker. It integrates with Eclipse Web Tools Platform (WTP) to allow CSS authoring while editing CSS and HTML files.

JointLogic CSS Designer 是一个 Eclipse 插件,它提供 CSS 创作工具,例如 - CSS 样式视图、带有预览的 CSS 声明设计器和面向 Web 的颜色选择器。它与 Eclipse Web 工具平台 (WTP) 集成,允许在编辑 CSS 和 HTML 文件时进行 CSS 创作。

Here's a screesnhot from the homepage:

这是主页上的一个 screesnhot :

screenshot

截屏

回答by Vladislav Rastrusny

I would recommend to use external software: http://www.colorschemer.com/online.htmlYou can integrate it into Eclipse.

我建议使用外部软件:http://www.colorschemer.com/online.html您可以将它集成到 Eclipse 中。

回答by Bob

I have used this plugin called colors in both Galymeade and I just dropped into Galileo. http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1281.htmlyou can copy the color code to/from clipboard or editor. Slider bar for coloring, color picker etc. I used it to edit css files on a recent project. Good Luck.

我在 Galymeade 中都使用了这个名为颜色的插件,我刚刚加入了 Galileo。 http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1281.html您可以将颜色代码复制到/从剪贴板或编辑器。用于着色、颜色选择器等的滑块。我用它来编辑最近项目中的 css 文件。祝你好运。

回答by fornwall

You might want to check out the second example at http://eclipsescript.org/#example-scripts.

您可能想查看http://eclipsescript.org/#example-scripts 上的第二个示例。