Share a wave of discovery plug IDEA
This article originates from: https://www.jianshu.com/p/e3f83c4c2d7e
Foreword
工欲善其事必先利其器with IntelliJ IDEA development for several years, it brings to enhance the work efficiency is very significant. This article share some useful plugins and experience.
Plug
-
Cool code editing effects. Play on the line.
-
Alibaba Java Coding Guidelines
Based on Java development manual of Java code scanning Statute plug . For non-compliant code will prompt the recommended use or quick fix , there is the code over the top of a small partner rush to use it.
-
Provides Bash language support, support for the running configuration, syntax highlighting, renamed reconstruction, view the comments in a document, syntax checking, command prompt, you can still do the main code branches .
-
In IDEA status bar displays the battery status .
-
Thumbnail display the contents of code files, you can quickly navigate to the specified location in the scroll bar on the edge. Play on the line.
-
In IDEA status bar displays CPU usage .
-
It provides hungry What Element UI component library support. Front-end development is useful.
-
It provides .env support files.
-
Provide for EJS template engine supports. Front-end development is useful.
-
Provide ESLint support for front-end code checking and quick fixes. Front-end development is useful.
-
For monitoring file changes, mainly for the preservation of the front-end code when the automatic formatting .
-
Mainly for logging output color control (but error log to print only the first line of color).
Color list (only set the foreground color, the background color is not set):
Log Level colour .*VERBOSE.* <font color="#BBBBBB">BBBBBB</font> .*DEBUG.* <font color="#0070BB">0070BB</font> .*INFO.* <font color="#48BB31">48BB31</font> .*WARN.* <font color="#BBBB23">BBBB23</font> .*ERROR.* <font color="#FF6464">FF6464</font> .*ASSERT.* <font color="#8F0005">8F0005</font> -
It provides .ignore support files.
-
For switching IDEA carrying the JVM .
-
Hot deploy Java plug-in , in most scenes just modified the code
Ctrl + B
to compile under code immediate effect, and without frequent restart the project. Compared SpringBoot of devtools more easy to use. In addition, it not recommended to open automatically compiled, it is consumption performance. -
It provides Lombok support.
-
The default Integrated Markdown plug-in, in addition to not support emoji expression, others are good enough.
win10 high resolution set to display the zoom will result in a preview of the page Markdown text is vague
Solution: Use JB SDK Bintray Downloader plug-in upgrade to the latest JB SDK ( reference ), or use your own download the JDK ( reference ).
-
Theme plug-in, for configuring IDEA 's UI component display effect. Beginning with may be more dazzling, one month down already accustomed to using.
My configuration program:
File -> Settings -> Appearance & Behavior -> Material Theme ( 当然也可以直接点击状态栏的小图标直接进入 ) 基础模版选择 Material Oceanic Compact: 勾选 StatusBar / Table Cells / Dropdown Lists / Menus Project View: Sidebar Height 设置为 22 Components: 取消勾选 Uppercase buttons 另外编辑区的背景色改成和主体背景色一样的 #263238
-
For Maven dependency collision check ( reference ).
-
Providing MyBatis support, support Mapper.java and Mapper.xml mutually code jump between, according Mapper.java automatically generate the corresponding Mapper.xml and SQL functions. This plug-in is a fee, crack method reference here , although cracked version can be used, but the start time or will spend tens of seconds networking check, resulting in IDEA start very slowly.
-
MyBatis plugin free alternative, function is relatively little less.
-
For MyBatis log output into executable SQL .
-
Provide Nginx supports configuration files, supports syntax highlighting and grammar tips .
-
It provides Prettier support ( reference ). You need to set your own shortcuts or formatted with above File Watchers use. Front-end development is useful.
-
By shortcut keys
Ctrl + \
defined fast retrieval project @ RequestMapping , support fuzzy search. -
String format conversion tools, such as case, the hump and underscores conversion, try to know yourself. Shortcuts
Alt + M
. -
Translation plugin for English slag slag is useful to see the source code do not have to cut out the Baidu. Translation shortcuts I set
Alt + Z
. -
Case conversion plug,
Alt + P
switch to full uppercaseAlt + L
to all lowercase. -
It provides Vue.js support. Front-end development is useful.
-
File name behind the tree like Eclipse as display version control (Git / SVN) Last Modified person / time, no need to open or not, a little card.
The plug-in market 3000+ browser plug-ins are probably again, a little practical points are listed in the above ( sorted by name ), and the rest some other languages , frameworks related to their own plug-ins to search it.
Experience
-
About activation
License Click here to get, and require the following line to be added to the hosts file. Conditional or genuine support of it.
0.0.0.0 account.jetbrains.com # 下面这个是官网,2019.1版本起,IDEA启动的时候会从官网校验注册码,所以需要屏蔽,需要访问官网时再注释掉配置 0.0.0.0 www.jetbrains.com
-
About the upgrade
Recommended that the latest version has been maintained, the official website of the update log written in great detail, you can take on to the next. If you do not worry, you can late a few of the smaller version. Make a backup before updating the best configuration files ( Windows in the
%HOMEPATH%
directory, for example.IntelliJIdea2019.1
). -
Global retrieval
2018.3
Since version, double-clickshift
to bring up the new Search Everywhere , merge the original class files, symbolic, Action search. -
Everything runs
2018.3
Since version, double-clickCtrl
to bring up the window, you may be performed run configuration or a terminal command . In this window byshift
switchingrun/debug
mode. -
About color scheme
My color scheme a few years, but also good, but can not find the original address. Share a project that he choose a suitable color scheme , it is not too dark, dazzling the eyes look comfortable points better.
-
About shortcuts
File -> Settings -> Keymap, I am more accustomed to eclipse style shortcuts.
-
Do not open the project start
File -> Settings -> Appearance & Behavior -> System Settings -> Startup/Shutdown 标签项 -> 去掉 Reopen last project on startup 。
-
Backup personalized settings
File -> Export Settings 。
-
Project hidden directory-independent configuration file
File -> Settings -> Editor -> File Types -> Ignore files and folders append the following content (note separated by semicolons).
*.log;*.iml;.idea;.classpath;.project;.settings;
-
Project start automatically after opening
File -> Settings -> Tools -> Startup Tasks Adding to run their own configuration.
-
Version control
Integration of various version control tools of the client, but also I used Windows at the best use of the platform Git client, not one.
-
Decompiler
Decompile class -specific, with who knows who. If the entire Jar package decompile or use JD-GUI now.
-
Terminal
-
Lightweight, easy to use terminal tool, not only supports the local command execution, but also to connect to a remote host, it can
Ctrl + C/V
Eren is very important. -
After modifying files under version control, the parent folder also marked modified (project-level configuration)
-
Line comments set (not displayed beginning of the line)
You can hook
Add a space at comment start
-
IntelliJ IDEA how to set up branches open multiple files and display --- that is, how to set tabs