项目地址:http://code.google.com/p/lombok-intellij-plugin/#IntelliJ_Idea_plugin_project_for_project. java
介绍: ide
Provides support for lombok annotations to write great java code with IntelliJ Idea. this
With this plugin your IntelliJ can recognize all of generated getters, setters and some other things from lombok project, so that you get code completion and are able to work without errors stating the methods don't exists. google
Fifth version of plugin released. Now with support for IntelliJ 9, 10, 11, and 12! idea
Install it automatically from IntelliJ Idea plugin repository. spa
You can install it manually, just download, unzip to IntelliJ plugin directory and try out! 插件
The plugin doesn't generate any code in your files, it's only providing support for lombok. You need still to have lombok.jar on the classpath to compile your project. You have to use a newest available version of lombok.jar, at least 0.10.1. Versions before 0.10.1 are not supported! code
安装方法及效果演示: ip
在idea的插件管理器中,点这个按钮 get
而后在新弹出的窗口,搜索lombok,在搜索到的lombok上右键安装就能够了。
这个个人idea的版本是11.1.5旗舰版。不用这个插件的话,lombok的效果是看不到的,会报错。
效果以下: