First, send the idea of the download link
This is my personal Baidu cloud link, non-toxic non-pollution please rest assured download ~
Link: Http://pan.baidu.com/s/1kUMbatT Password: i233
Paddle, if you have not downloaded the installation, you can download and install it on my link. Contains cracked files.
Second, configure the idea
You can freely configure idea according to your personal habits.
First of all, let 's set up the theme of idea, personally think the default theme is too bright, for long-term development of us, easy to cause eye fatigue. So I suggest you change the theme style.
Ctrl+alt+s Open idea Setup Interface
The default theme is IntelliJ, which we'll switch to the darcula Theme
Then we set the editing interface font size and font type , the default font is relatively small, so long to see the eye damage.
Following the theme of the font is normally not allowed to modify, you can see the font is very small, the development of the time to visually see the eyes of the flowers.
Here we click Save As to copy the current theme and select the one after copy
You can see the font size at this time, the font line height, and the font type become modifiable. Adjust the value of the option according to your individual needs.
OK, the pre-work has been completed, and then we will use this magical IDE to improve our development efficiency, do a little to move bricks, or even do not move the brick developers (any heavy and long way ah ~).
Iii. How to use idea to improve development efficiency
We all know to be familiar with an IDE first to be familiar with is its shortcut keys, many use these shortcut keys, so you can greatly improve your development efficiency, do not think I just shortcut keys Oh hey, there are good things behind, look forward to it, slowly look down.
Personal frequently used and essential shortcut keys:
ctrl+t When updating SVN Development, the first thing to do when you open idea is to use this shortcut key.
ctrl+k Submit SVN This is a global commit, as long as the modified file will appear in this commit list. Remember to use caution. To avoid error submissions, here I teach you a way to see.
You can see that the current commit list is the default submission list ( the blue box tag ), and all the modified files appear here. But sometimes we don't need all the changed files to be submitted. Avoid error submissions we can place uncommitted files in another change list . Right-click the currently changing file, select Move to other change list (changelist ).
If another list already exists, such as the Blue arrow in the Figure , select it and click OK.
If not, select the option with the red box mark, create a new change list , enter a name in the comment , then click OK .
Any files that are not submitted later are moved to a different list by this action. What do you mean by saying something? "Mom never had to worry that I would submit the file in error."
Ctrl+shift+n Find Files are you still very low through the mouse layer to find files?
Ctrl+shift+alt+n find a method or variable in a class This shortcut is definitely a must-have key for home travel.
ctrl+g fast jump to the corresponding number of rows This shortcut key is very useful, I usually use when changing the bug, the error log that the program throws will show which class which line is error, this time can use ctrl+shift+alt+n or ctrl+shift+n quickly find the error java class, and then take advantage of ctrl+g quickly navigate to the error code location.
Ctrl+r Find Replace contents of current window
Ctrl+shift+r Global Find substitution
Ctrl+alt+f7 or alt+f7 queries where the current method is called to add modify function parameters, etc., you can use this shortcut to check that the location where it was called is the correct argument.
ctrl+alt+ left mouse button Jump to the implementation class of the current method
ctrl+alt+ Direction key left return to last edited position
F2 positioning to the location of the current file compilation error (red marked position)
Ctrl+alt+o Optimizing imported classes and Packages
Alt+insert Generate code ( such as get,set method , constructor, etc. )
Ctrl+alt+l Formatting code suggests this is often used by everyone
Ctrl+alt+t Surround Code (try/catch , etc.)
alt+f1 Locate the directory where the file is located to quickly locate the directory where you are editing the file
Ctrl+q Show Comment Document you don't know what the whole interface parameter means when you call someone else's interface, and this shortcut is used to display the comment document for the current calling method.
The above is my personal favorite shortcut keys.
For other shortcut keys please refer to:
Ctrl+d Copying rows
Ctrl+y Deleting rows
Ctrl+x Clipping Line
CTRL + Z backwards
Ctrl+shift+z forward
ctrl+/ Notes //
ctrl+shift+/ Comment /*...*/
Ctrl+w selected Code, continuous press will have other effects
SHIFT + F6 refactoring Rename
Alt+8 or Ctrl +h show class structure diagram
There are a lot of shortcut keys, you can also customize the shortcut keys, these people themselves more research.
The next step is to focus on how to improve the efficiency of development most of the things that come next.
################################### Front High energy ###############################
Live Template
So the name Incredibles is the template . We usually write the same code repeatedly when we develop it, which can make us waste a lot of time. Next I'll teach you how to define templates.
Where you find the configuration template, you can see that many templates have been defined here. But a lot of them don't work for us, so we need custom templates. Click the green plus sign on the right to add a template group or template, in order to maintain our custom template, we need to define a template group name random, I named MyTemplate.
Click OK to create our custom template group, and the next step is to add a custom template to the stencil group.
Select your own defined template group, click the Green plus sign, and then select the Live template
key: The variable that triggers the template, enter the Key value directly within the scope of use of the template , and then enter to generate the template.
Note : Enter an introduction to the template and enter Chinese comments--forgive me for being an English slag.
template content : custom templates for generating
template usage Scope definition : Determines the scope in which this template can be used. The optional range is as follows:
Now look at my personal additions to the template
Here's a look at the blue part of the logo
The part of the blue flag is the changeable part of the template, which is written in the way that the variable is defined.
variable format :$ variable name $
Note:$END $ means that after the template is generated, each variable enters a value, where the last focus is focused
The use of the development tool idea