在Eclipse Mars.2中没有Gradle文件语法高亮显示(No Gradle file syntax highlighting in Eclipse Mars.2)

编程入门 行业动态 更新时间:2024-10-27 08:32:01
在Eclipse Mars.2中没有Gradle文件语法高亮显示(No Gradle file syntax highlighting in Eclipse Mars.2)

想知道是否有其他人遇到同样的问题,我在Eclipse中打开gradle文件(Version:Mars.2 Release(4.5.2)),没有gradle语法的亮点。 我安装摇篮插件为Eclipse从http://projects.eclipse.org/projects/tools.buildship/downloads 。

我想同样的插件在Eclipse 4.4.1,但没有这样的问题。 任何建议表示赞赏。

看来我已经安装了几个摇篮插件。 发表我的屏幕快照。

发表我的节目查看屏幕快照,

Wondering if anyone else met with the same issue, I open gradle file in Eclipse (Version: Mars.2 Release (4.5.2)), there is no highlights for gradle syntax. I install Gradle plug-in for Eclipse from http://projects.eclipse.org/projects/tools.buildship/downloads.

I tried the same plug-in in Eclipse 4.4.1, but no such issues. Any advice is appreciated.

It seems I have installed a few Gradle plug-in. Post my screen snapshots.

Post my show view screen snapshots,

最满意答案

只是试图在Eclipse 4.4.2:没有语法高亮。 也许你有摇篮IDE包由Nodeclipse / Enide安装在您的4.4.1?

更新:所以我刚才看到你有两个 buildship并安装了摇篮IDE包。 这将安装多个编辑.gradle文件:

“摇篮构建脚本编辑器”(buildship,左侧) “极简摇篮编辑器”(摇篮IDE包,右边)

编辑比较

要打开.gradle与其他编辑器类型的文件,右键单击该文件,选择“打开方式”: 开放式与上下文菜单


我建议不要使用多重摇篮插件,你可以感到困惑通过插件做了什么。 你应该是最适合你的计划行事。

Just tried in Eclipse 4.4.2: No syntax highlighting. Maybe you have the Gradle IDE Pack by Nodeclipse/Enide installed in your 4.4.1?

Update: So I just saw you have both buildship and the Gradle IDE Pack installed. This will install multiple editors for .gradle files:

"Gradle Build Script Editor" (buildship, on the left) "Minimalist Gradle Editor" (Gradle IDE Pack, on the right)

Editor comparison

To open a .gradle file with another type of editor, right-click the file and select "Open With": open-with context menu


I advise against using multiple Gradle plugins, as you can get confused by which plugin does what. You should stick with the one that suits you best.

更多推荐

本文发布于:2023-08-06 06:02:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1445292.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语法   文件   Mars   Gradle   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!