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

发布于 2024-09-12 18:26:45 字数 264 浏览 8 评论 0原文

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

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

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

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.

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.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

伪心 2024-09-19 18:26:45

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

正如 @Shakedown 所说,在 Settings | 中更改外观和感觉外观是选项之一。请注意,Java 允许安装其他第三方外观和感觉。

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

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

至于配色方案,您可以在 Google 上搜索几个 XML 格式的贡献预设,例如这个。下载链接的 XML,将其重命名为 Cobalt.xml,将文件放置在 ~/.IntelliJIdea90/config/colors 目录中。重启IDEA,在Settings | 中选择Cobalt方案编辑|颜色和颜色字体

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

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

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

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

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.

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).

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/colors directory. Restart IDEA, select Cobalt scheme in Settings | Editor | Colors & Fonts.

Another nice color scheme is 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.

一身软味 2024-09-19 18:26:45

安装Eclipse配色方案:

  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)。

    Windows

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

  2. 重新启动 IntelliJ IDEA

  3. 转到 Preferences |编辑|颜色和颜色字体并选择一种新的
    颜色主题。

Installation Eclipse color scheme:

  1. Copy eclipse.xml to 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 & Fonts and select one of the new
    color themes.

弱骨蛰伏 2024-09-19 18:26:45

下载 IntelliJ 的配色方案,例如“Classic Eclipse”[编者注:此处先前链接的网站已被垃圾邮件替换并已被编辑掉]

它是一个 jar 文件,然后您可以执行 File >;导入设置... 并打开 jar 文件并重新启动。

您还应该进入 Preferences > Keymap 并将下拉菜单更改为 Eclipse 快捷方式,以便您可以更轻松地进行操作。

download a color scheme for IntelliJ such as "Classic Eclipse" [Editor's note: the website previously linked here has been replaced with spam and has been edited out]

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

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

亢潮 2024-09-19 18:26:45

如果您正在谈论 Eclipse 的黑暗面,您可能会喜欢我的Eclipse 深色配色方案
https://plugins.jetbrains.com/plugin/11055- eclipse-dark-theme-color-scheme

示例:

在此处输入图像描述

如果您想要与 Eclipse 中相同的字体,请使用 Consolas 13pt。

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

Example:

enter image description here

If you want the same font like in Eclipse, use Consolas 13pt.

擦肩而过的背影 2024-09-19 18:26:45

我同意,我几乎无法忍受所有的外观和感觉,但我真的很喜欢 Nimbus; 文件 ->设置->外观->外观和感觉 = Nimbus。尝试一下,看看是否有帮助。

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.

醉殇 2024-09-19 18:26:45

尝试添加

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

到您的 idea64.vmoptions

它稍微改进了我的 Ubuntu 14.04、Gnome Shell、Oracle JDK 7 上的抗锯齿功能。虽然差别不大,与 Eclipse 相比还是有很大差距,但它让它变得更好了。

您还可以尝试使用 onlcd 选项来代替 gasp。一些用户报告说它有所不同(对我来说,ongasp 似乎工作原理相同,而 lcd 没有改变任何东西)。

我没有发现与 Oracle JDK 8 有任何区别。

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

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

< strong>更新:

对于 Oracle JDK 8,删除 -Dawt.useSystemAAFontSettings=gasp 改善了 Ubuntu 14.10 上的渲染效果

Try adding

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

to your 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.

You can also try on, and lcd options instead of gasp. Some users report it makes a difference (for me, on and gasp seem to work the same, and lcd doesn't change anything).

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

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

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

Update:

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

少女净妖师 2024-09-19 18:26:45

聚会有点晚了。这是我发现并为我工作的东西。基本上它在 IntelliJ 上创建类似 Eclipse 的语法突出显示。适用于 Java 代码和 XML 这正是我正在寻找的。

https://github.com/shalabh-jaiswal/eclipse- intellij-idea 的语法颜色

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 Java code and XML which is what I was looking for.

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

世态炎凉 2024-09-19 18:26:45
  1. 安装 Eclipse 颜色主题插件:https://marketplace.eclipse.org/content /eclipse-color-theme

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

  3. 在 Eclipse 中,转到 Windows >首选项>一般>外观>颜色主题>导入主题。并选择刚刚下载的xml文件。

  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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文