我可以让 IntelliJ IDEA 看起来更像 Eclipse 吗?

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

Can I make IntelliJ IDEA look more like Eclipse?

eclipseidefontscolorsintellij-idea

提问by HDave

I've been developing in Eclipse for a long while, but am taking a hard look at IntelliJ IDEA 9.0.3 because of its good Flex development tools and Maven flexmojos integration.

我已经在 Eclipse 中进行了很长一段时间的开发,但我正在认真研究 IntelliJ IDEA 9.0.3,因为它具有良好的 Flex 开发工具和 Maven flexmojos 集成。

But I just CAN'T STAND the look of the thing on Ubuntu 10.04. Coming from Eclipse, the fonts and colors make everything very hard to read....very straining on the eyes. I've played around with fonts and colors and now its a little bit better.

但我就是无法忍受 Ubuntu 10.04 上的东西。来自 Eclipse,字体和颜色使所有内容都很难阅读......对眼睛来说非常紧张。我玩过字体和颜色,现在好一点了。

But has some kind soul already created some sort of profile I can load into IDEA and poof -- make it visually look more like Eclipse?

但是,是否有某种灵魂已经创建了某种配置文件,我可以将其加载到 IDEA 中并 poof —— 让它在视觉上看起来更像 Eclipse?

采纳答案by CrazyCoder

Eclipse and IDEA are using different UI toolkits (SWT vs SWING), so it would be hard to make it look the same.

Eclipse 和 IDEA 使用不同的 UI 工具包(SWT 与 SWING),因此很难让它看起来相同。

As @Shakedown said, changing Look&Feel in Settings | Appearanceis one of the options. Note that Java allows to install additional third-party Look&Feels.

正如@Shakedown 所说,改变 Look&FeelSettings | Appearance是其中一种选择。请注意,Java 允许安装额外的第三方外观和感觉。

Editor font is configured in Settings | Editor | Colors & Fonts. Fonts are rendered by the JVM, so it shows any TTF fonts that it can find. If for some reason not all your system TTF fonts are visible, you need to copy *.ttf files into JDK_HOME/jre/lib/fonts. After restarting IDEA you'll be able to choose new fonts. Fonts missing some Unicode characters required for proper code display will not be listed.

编辑器字体在Settings | Editor | Colors & Fonts. 字体由 JVM 呈现,因此它会显示它可以找到的任何 TTF 字体。如果由于某种原因并非所有系统 TTF 字体都可见,则需要将 *.ttf 文件复制到JDK_HOME/jre/lib/fonts. 重新启动 IDEA 后,您将能够选择新字体。将不会列出缺少正确代码显示所需的某些 Unicode 字符的字体。

Check out the list of most popular programming fonts. However, Java can render TTF fonts only and it may be hard to find TrueType versions of some fonts. My favorite font is Consolas (provided with Windows).

查看最流行的编程字体列表。但是,Java 只能呈现 TTF 字体,并且可能很难找到某些字体的 TrueType 版本。我最喜欢的字体是 Consolas(随 Windows 提供)。

As for the color schemes, you can Google several contributed presets in the XML format, like this one. Download the linked XML, rename it to Cobalt.xml, place the file in ~/.IntelliJIdea90/config/colorsdirectory. Restart IDEA, select Cobalt scheme in Settings | Editor | Colors & Fonts.

至于配色方案,你可以谷歌几个 XML 格式的贡献预设,就像这个。下载链接的 XML,将其重命名为Cobalt.xml,将文件放在~/.IntelliJIdea90/config/colors目录中。重启IDEA,在Settings | Editor | Colors & Fonts.

Another nice color scheme is VibrantInk.

另一个不错的配色方案是VibrantInk

It's also possible to disable side tool window bars, menu bar, etc to make IDEA look like simple editor if you'd like so, even editor tabs can be completely hidden.

如果您愿意,还可以禁用侧工具窗口栏、菜单栏等,使 IDEA 看起来像简单的编辑器,甚至可以完全隐藏编辑器选项卡。

回答by Billz

Installation Eclipse color scheme:

安装Eclipse配色方案:

  1. Copy eclipse.xmlto your IntelliJ IDEA preferences color directory. The directory varies, depending on which JetBrains IDE you are using. It is typically in:

    Mac OS X

    • ~/Library/Preferences/IntelliJIdea13/colors(IntelliJ IDEA 13 Ultimate Edition)
    • ~/Library/Preferences/IdeaIC13/colors(IntelliJ IDEA 13 Community Edition),
    • ~/Library/Preferences/WebIDE70/colors(PHPStorm 7.0).

    Windows

    • %USERPROFILE%/.IdeaIC13/config/colors(IntelliJ IDEA 13 Community Edition)
  2. Restart IntelliJ IDEA

  3. Go to Preferences | Editor | Colors & Fontsand select one of the new color themes.

  1. 复制eclipse.xml到您的 IntelliJ IDEA 首选项颜色目录。该目录会有所不同,具体取决于您使用的 JetBrains IDE。它通常在:

    Mac OS X

    • ~/Library/Preferences/IntelliJIdea13/colors(IntelliJ IDEA 13 终极版)
    • ~/Library/Preferences/IdeaIC13/colors(IntelliJ IDEA 13 社区版),
    • ~/Library/Preferences/WebIDE70/colors(PHPStorm 7.0)。

    视窗

    • %USERPROFILE%/.IdeaIC13/config/colors(IntelliJ IDEA 13 社区版)
  2. 重启 IntelliJ IDEA

  3. 转到Preferences | Editor | Colors & Fonts并选择一种新的颜色主题。

回答by simbo1905

download a color scheme for IntelliJ such as "Classic Eclipse" from http://www.ideacolorthemes.org/home/

http://www.ideacolorthemes.org/home/下载 IntelliJ 的配色方案,例如“Classic Eclipse”

It a jar file then you do File > Import Settings...and open the jar file and restart.

它是一个 jar 文件,然后您File > Import Settings...打开 jar 文件并重新启动。

You should also go into Preferences > Keymapand change to the dropdown to be eclipse sortcuts so that you can get about easier.

您还应该进入Preferences > Keymap并将下拉列表更改为 eclipse sortcuts,以便您可以更轻松地进行操作。

回答by Nate W.

I agree, I can't stand nearly all of the Look and Feels, but I really like Nimbus; File -> Settings -> Appearance -> Look and Feel = Nimbus. Give that a go and see if it helps.

我同意,我几乎无法忍受所有的外观和感觉,但我真的很喜欢 Nimbus;File -> Settings -> Appearance -> Look and Feel = Nimbus. 试一试,看看它是否有帮助。

回答by Jakub Kotowski

Try adding

尝试添加

-Dawt.useSystemAAFontSettings=gasp
-Dswing.aatext=true
-Dsun.java2d.xrender=true

to your idea64.vmoptions

给你的 idea64.vmoptions

It improves antialiasing on my Ubuntu 14.04, Gnome Shell, Oracle JDK 7 slightly. It's not a big difference, still quite far from Eclipse, but it makes it better.

它略微改进了我的 Ubuntu 14.04、Gnome Shell、Oracle JDK 7 上的抗锯齿。这没什么大的区别,离 Eclipse 还很远,但它使它变得更好。

You can also try on, and lcdoptions instead of gasp. Some users report it makes a difference (for me, onand gaspseem to work the same, and lcddoesn't change anything).

您也可以尝试on, 和lcdoptions 而不是gasp。有些用户报告它是否有差别(对我来说,ongasp似乎工作是相同的,lcd不会改变任何东西)。

I don't see any difference with Oracle JDK 8.

我认为与 Oracle JDK 8 没有任何区别。

If you're using OpenJDK, you might need to patch it.

如果您使用的是 OpenJDK,则可能需要对其进行修补。

See http://youtrack.jetbrains.com/issue/IDEA-57233#

http://youtrack.jetbrains.com/issue/IDEA-57233#

Update:

更新:

For Oracle JDK 8, removing -Dawt.useSystemAAFontSettings=gaspimproves the rendering a bit for me on Ubuntu 14.10

对于 Oracle JDK 8,删除-Dawt.useSystemAAFontSettings=gasp对我来说在 Ubuntu 14.10 上的渲染有所改善

回答by Hannes Schneidermayer

If you are talking about the dark sideof eclipse, you may like my Eclipse Dark Color Scheme: https://plugins.jetbrains.com/plugin/11055-eclipse-dark-theme-color-scheme

如果你在谈论Eclipse阴暗面,你可能会喜欢我的Eclipse Dark Color Schemehttps: //plugins.jetbrains.com/plugin/11055-eclipse-dark-theme-color-scheme

Example:

例子:

enter image description here

在此处输入图片说明

回答by Akio Hamasaki

A little late to the party. Here is something I found and worked for me. Basically it creates eclipse like syntax highlighting on intelliJ. Works for Javacode and XMLwhich is what I was looking for.

聚会有点晚了。这是我发现并对我来说有效的东西。基本上它会在 intelliJ 上创建类似 eclipse 的语法突出显示。适用于Java代码,XML这就是我正在寻找的。

https://github.com/shalabh-jaiswal/eclipse-syntax-colors-for-intellij-idea

https://github.com/shalabh-jaiswal/eclipse-syntax-colors-for-intellij-idea

回答by HymanDev

  1. Install Eclipse Color Theme Plugin: https://marketplace.eclipse.org/content/eclipse-color-theme

  2. Download "IntelliJ Dracula" theme: http://www.eclipsecolorthemes.org/?view=theme&id=14105(select the Eclipse Color Theme (XML) file download).

  3. In Eclipse, go to Windows > Preferences > General > Appearances > Color Theme > Import a theme. And select the xml file just downloaded.

  1. 安装 Eclipse 颜色主题插件:https: //marketplace.eclipse.org/content/eclipse-color-theme

  2. 下载“IntelliJ Dracula”主题:http: //www.eclipsecolorthemes.org/?view=theme& id=14105 (选择 Eclipse Color Theme (XML) 文件下载)。

  3. 在 Eclipse 中,转到 Windows > Preferences > General > Appearances > Color Theme > Import a theme。并选择刚刚下载的xml文件。