Cool Eclipse IDE Plugins You Should Check Out

本文介绍了一些不那么知名但非常实用的Eclipse插件,这些插件可以增强开发体验,提高工作效率。从增强编辑功能到提供连续反馈,再到自动化任务,这些插件将帮助您更好地利用Eclipse。

The Eclipse IDE from the non-profit Eclipse Foundation is known for its plugins ecosystem and theEclipse Marketplace hosts a huge amount of plugins that you can download to customize your Eclipse workbench. I recently scanned the Marketplace just to see if there is anything interesting I could find. In fact, I did find some plugins that I think are cool, but not very well-known, so it’s these that I’d like to share with you.

Popular vs Cool

There are some qualities of plugins that I’d like to mention. First of all, I’d like to stress that I’m looking at the plugins that are not tools on their own, and therefore my favourites like JRebel for Eclipse and JBoss Tools are not on the list here. The plugins that I mention are just nice little extensions specifically designed for jazzing up your vanilla Eclipse IDE installation.

Secondly, popular doesn’t mean cool. There’s a top list of popular plugins at Marketplace, which almost haven’t changed during last 2-3 years.

It would be quite boring for me to accept that if a plugin is cool just because it is popular and is in the most downloaded plugins list at the Marketplace. The popular plugins are there just because the essential functionality that the plugins provide is not included in Eclipse by default. This is why the Maven, Subversion and Git plugins are at the top there.

Plugins I think are cool

Courtesy of a shell

Although I’m a Java developer, sometimes I have play with shell scripting and there are a couple of plugins that are useful for this work. The ShellEd plugin adds shell script editing capabilities while the Terminal plugin integrates the shell write into the Eclipse workbench.

shelled-and-terminal

With ShellEd and Terminal plugins I can write the scripts and try them out directly in the Eclipse window without switching between different windows. Efficiency FTW!

Edit like a boss!

The next plugins on my list are More ClipboardSmart Save and AnyEdit. These plugins improve my editing experience in Eclipse by an order of magnitude.

More Clipboard keeps track of the latest entries copied/cut into clipboard buffer and allows you to quickly paste from the popup list by pressing a hotkey. Yeah, let’s accept that – we do a lot of copy-paste editing while writing code :)

more-clipboard

The AnyEdit plugin, by Andrey Loskutov, adds a bunch of editing capabilities to Eclipse. You can sort the contents of files and selections, encode HTML snippets, quickly convert between tabs and spaces and much more. This is a must-have plugin for Eclipse, I’d say.

Primarily, I’m an IntelliJ IDEA user and one of the essential differences for me with the Eclipse editor is that in IDEA the editor saves the changes automatically. So I was looking for something similar in Eclipse and found the Smart Save plugin, which can be configured to automatically save the change after some timeout. Cool and handy!

Although, I think it might have some impact on the editing experience since in Eclipse it is quite common to have the Compile on save option turned on by default and that eventually leads Eclipse to do a clean build. So theoretically, it might happen that you have just edited something, but Eclipse decides to do a full build and blocks the workbench.

Spice up your look!

Next up, the Eclipse Color Theme plugin is the only one in my list that is also quite popular on Eclipse Marketplace. This plugin allows you to setup a color scheme for your Eclipse editor and comes with a number of nice themes out of the box.

roboticket
Roboticket color scheme

Personally, I prefer the Roboticket color scheme, but there also plenty of others to choose from, such as the Monokai theme below.

monokai
Monokai color scheme

Continuous feedback

If you’re a fan of the continuous feedback approach in development and you enjoy writing unit tests (here is why unit tests are awesome) then you might find the JLoop and JUnitLoop plugins very useful. These plugins can execute code if any changes are made. I found it working quite nicely with JUnitLoop – when I changed a method that was exercised by my unit test, the test was re-executed automatically, providing a rapid feedback to my changes.

logo_junitloop

Automation maniac

Your strive for efficiency might lead you to the beautiful land of automation. Unfortunately, there’s no built-in support for macros in Eclipse, so you can’t just record and replay your activities. However, there’s a few plugins that make it possible to automate different activities in the IDE by leveraging scripting support.

scripting
ScriptEclipse plugin adds _SCRIPTS_ project to the workspace

One of the first plugins in this niche is GroovyMonkey which is not actively maintained. Other alternatives are ScriptEclipse and EclipseScript plugins (don’t confuse the two!).

Essentially, the idea is similar behind all these implementations–the engine exposes some of the internal Eclipse objects to the script where you can implement your own logic according to your requirements. The scripts are then stored in the workspace and, for accessibility, the plugin composes a menu from the list of script files.

scripteclipse-menu

Know your way around

One last plugin that I’d like to mention in this post is the IDE++ plugin that helps you to explore better and more efficient ways of doing things in Eclipse installation.

It analyses your activities and tries to give you suggestions for a quicker way to do the same task. For instance, if I tried to close all the editor tabs one-by-one, the plugin detected this and notified me with a nicely-styled popup basically saying “Hey geek, did you know there there’s a more efficient way to close the tabs by using CTRL+SHIFT+W?”. Unfortunately the plugin doesn’t know that it will be a bit different on Mac :)

ideplusplus
IDE++ popup

I really liked the idea behind the IDE++ plugin–it helps you to detect inefficiencies in your usage of Eclipse, so I hope the plugin will be developed further.

Summary

If you’re an Eclipse user, some of the plugins mentioned in this post should help you understand your IDE better and even code more efficiently in Eclipse. Hopefully, you’ve found these plugins just as cool as I have. Please leave comments if:

  • You enjoyed reading this
  • You have tips & tricks to share about the Eclipse plugins
  • You want us to cover any other specific areas of Eclipse
  • You are a serial commenter that cannot avoid leaving your remarks ;)

We are actually planning to more posts on Eclipse IDE for Java developers, getting into the deeper technical areas as we progress, and publish more Rebel Labs content on this subject…so let us know what you’d like to see!

ANTON ARHIPOV
Anton Arhipov is JRebel Product Lead at ZeroTurnaround. He is a Java enthusiast, vim fan and IntelliJ addict. Professional interests include programming languages, middleware and tooling. Anton loves tea and doesn't drink coffee. He tweets from  @antonarhipov and you can find him at  LinkedIn.
内容概要:本文介绍了一种基于双层优化的微电网系统规划设计方法,旨在通过Matlab代码实现,解决微电网在规划与运行中的多目标、多层次决策问题。该方法将优化过程分为上下两层:上层通常负责容量配置、设备选址等长期规划决策,下层则聚焦于能量管理、出力调度等短期运行优化,通过迭代交互实现全局最优。文中详细阐述了模型构建、约束条件设定、目标函数设计及求解算法实现流程,并提供了完整的Matlab代码供复现实验,有助于深入理解微电网系统的设计逻辑与优化机制。; 适合人群:具备一定电力系统基础知识和Matlab编程能力,从事新能源、微电网、综合能源系统等领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 学习和掌握双层优化理论在微电网规划设计中的具体应用;② 通过阅读和运行Matlab代码,复现并改进经典优化模型,用于学位论文、科研项目或实际工程方案设计;③ 深入理解微电网中分布式能源、储能与负荷的协同优化调度策略。; 阅读建议:此资源以Matlab代码实现为核心,强调理论与实践的结合。建议读者先理解双层优化的基本思想和数学模型,再结合代码逐行分析,重点关注变量定义、约束条件的代码转化以及主从问题间的迭代逻辑。鼓励在提供的代码基础上进行参数调整、场景扩展或算法改进,以深化学习效果。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值