First of all, you can choose to download your favorite theme from the following website: get:www.riaway.comI am the successor of Lei Feng thank you go without saying!

Next, select File -> Import Settings in idea to import the downloaded JAR package

Finally, set the theme in the set

1. Set main method:

1. First, go to File–>Settings–>Editor–>Live Templates

2. Add a Template Group: Click “+” in the upper right corner to add “Template Group”, for example, Java

3. Add a Template: Click “+” in the upper right corner to add “Live Template”, such as Main

4. Fill in the template:


public static void main(String[] args){

} 5. Define scope:

6. Define a shortcut key. For example, Enter. Select Expand with under Options as Enter.

The modification method is as follows:

Go to File — > Settings… Ctrl+Alt+S), – > Open the Settings dialog box.

Click KeyMap in the navigation box on the left. Then from the right tree, select Main Menu — > Code — > Completion. Then you need to do two things: 1. Remove the Alt+/ shortcut binding from the original Cycle Expand Word. 2. Right-click Basic, remove the original Ctrl+ space binding, and add Alt+/ shortcut.

And then Apply, OK.

IntelliJ Idea Common shortcut list Alt+ Enter import package, automatically correct Ctrl+N find classes Ctrl+Shift+N find files Ctrl+Alt+L Formatting code Ctrl+Alt+O optimize import classes and packages Alt+Insert Generate code (such as get,set methods, constructors, etc.) Ctrl+E or Alt+Shift+C Recently changed code Ctrl+R replace text Ctrl+F Find text Ctrl+Shift+Space Autocomplete code Ctrl+ Space code prompt Ctrl+Alt+Space Class name or interface name Prompt Ctrl+P method parameter prompt Ctrl+Shift+Alt+N Find a method or variable in the class Alt+Shift+C contrast the recently modified code Shift+F6 Refactoring – rename Ctrl+Shift+ Up first Ctrl+X Delete line Ctrl+D Copy line Ctrl+/ or Ctrl+Shift+/ comment (// or /*… */) Ctrl+J Auto code Ctrl+E Recently opened files Ctrl+H Display class structure diagram Ctrl+Q Display comment document Alt+F1 Find the code location Alt+1 Quickly open or hide the engineering panel Ctrl+Alt+ left/right Alt+ Left/Right Toggle code view Alt+ Up/Down Move quickly between methods position Ctrl+Shift+Up/Down move code Up/Down. F2 or Shift+F2 highlight error or warning quickly locate the code Tab After typing is complete, press Tab to generate the code. Select the text, press Ctrl+Shift+F7 to highlight all the text, press Esc to highlight and disappear. Ctrl+W selects the code, pressing continuously will have other effects select the text, press Alt+F3 to scroll down the same text one by one and highlight it. Ctrl+Up/Down Cursor jumps to the first or last line press Ctrl+B to quickly open the class or method at the cursor

Ctrl+E to display a list of recently edited files.Shift+Click to close files.Ctrl+[or] to jump to the beginning and end of braces. Ctrl+F7 to query the current element reference in the current file, then press F3 to select 7.Ctrl+N to quickly open the class 8.Ctrl+Shift+N Alt+Q to see the declaration of the current method. 10.Ctrl+W to select word, statement, line, and function 11. Ctrl+Shift+Insert Can select clipboard contents and Insert 14.Alt+Insert can generate constructors/getters/setters, etc. 15.Ctrl+Alt+V can introduce variables. Ctrl+Alt+T can pack code together, such as try/catch.Alt+Up and Alt+Down can move quickly between methods. The following is not very useful. Press Alt+Enter in some places to get some Intention actions, For example, change “==” to “equals()” 19.Ctrl+Shift+Alt+N opens the symbol quickly 20.Ctrl+Shift+Space gives Smart hints in many cases 21 Ctrl+/ and Ctrl+Shift+/ can comment code. 23.Ctrl+Alt+B can jump to an abstract method implementation. 24 Ctrl+Alt+Space is class name autocomplete 27. To quickly open classes/files/symbols, you can use wildcards, or you can use the abbreviation 28.Live Templates! Ctrl+Shift+F7 can be used to highlight the current element in the current file 30.Ctrl+Alt+Up /Ctrl+Alt+Down can be quickly jumped to search results 31.Ctrl+Shift+J can be integrated into two lines 32

In the process of using InelliJ IDEA, through searching materials and some of my own exploration, I found that there are many tips worth mentioning in the IDE that many Java programmers like. If I can skillfully apply them to the actual development process, It will save you a lot of development time and give you a little bit of a sense of accomplishment along the way 🙂 Try it!

1, when writing Code, using the Alt – Insert (Code | the Generate…). You can create getters and setters for any field in a class.

2. Right-click on the breakpoint marker (in the left sidebar of the text) to activate the quick lookup menu, which allows you to quickly set enable/disable breakpoints or condition their properties.

3. A special variable in the CodeCompletion property is the ability to activate Ctrl-Alt-space to complete class names that are or are not in the current file. The import flag is created automatically if the class is not introduced.

4. Use ctrl-shift-V to insert the most recently used clipboard selection into the text. A clipping dialog box will pop up, from which you can select the part you want to paste.

5. Use the CodeCompletion property to quickly complete various statements in your code by typing the first few letters of a class name and then ctrl-space to complete the full name. If there are more than one option, they will be listed in the quick check list.

Use Ctrl-/ and Ctrl-Shift-/ to comment/uncomment lines and blocks of code. -/ Mark with a single line comment (” //… “) ) to comment/uncomment the current line or select a block of code. Ctrl-shift -/ can be marked with block comments (” /*… */ “) surrounds the selected block. To uncomment a block of code, press Ctrl-Shift-/ anywhere in the block.

7, press Alt – Q (View | Context Info) can View the current method does not need mobile code statement. Pressing twice in a row will display the name of the currently edited class.

8, use Refactor | Copy the Class… You can create a “copy” of the selected class. This is useful, for example, when you want to create a class that has most of the same content as an existing class.

In the editor, Ctrl-d can copy the selected block or the current line without the selected block.

The function of ctrl-w in the editor is to select the word in the cross character and then select the extension area of the source code. For example, select a method name, then the expression that calls the method, then the entire statement, then the containment block, and so on.

11. If you don’t want the event details highlighted ball icon to appear in the editor, you can deactivate the event text attachment by pressing the Alt-Enter combination to open the all events list and clicking on it. That way there won’t be a bright ball indicating a particular event in the future, but you can still use it with the Alt-Enter shortcut.

12, when using CodeCompletion, you can use comma (.) characters, comma (,) semicolon (;) , Spaces and other characters enter the currently highlighted portion of the pop-up list. The selected name is automatically entered into the editor as the character is entered.

13. Use the Escape key in any tool window to move the focus to the editor. Shift-escape not only shifts focus to the editor but also hides the current (or last active) tool window. The F12 key moves the focus from the editor to the most recently used tool window.

14. An easy way to view the value of any expression while debugging your program is to select text in the editor (this can be done more efficiently by pressing Ctrl-W several times) and then press Alt-F8.

15. To open the browser for the class or method Java document used in the editor’s stripout, press Shift-f1 (External JavaDoc from the right-click menu). To use this function need to join the path of the browser, set in the “General” option (Options | IDE Settings), and also to create Java document added to the Project (File | Project Properties).

16, use Ctrl – F12 (View | File Structure Popup) keys you can in the current edit files fast navigation. It displays a list of members of the current class. Select an element to navigate and press Enter or F4. To easily locate an item in the list, simply type its name.

17. Place the cursor on the Marker or its checkpoint in the code and press Alt-F7. The location of a class, method, or variable used throughout the project is quickly found.

18, press Ctrl – N (Go to | Class…). Typing the name of the class will quickly open any class in the editor. Select the class from the drop-down list that appears. The same method you can use Ctrl – Shift – N (Go to | File…). Open non-Java files in the project.

To navigate to a class, method, or variable declaration used somewhere in the code, place the cursor over the view item and press Ctrl-B. You can also go to the declaration by pressing Ctrl while clicking the mouse button on the view point.

20. Place the cursor over the view point and press Ctrl-Alt-B to navigate to the implementation code of an abstract method.

21. To view the Browse Type Hierarchy of a selected class, press CtrL-H (Browse Type Hierarchy). You can also activate the inheritance view in the editor to see the inheritance of the currently edited class. 22, use the Ctrl – Shift – F7 (Search | Highlight Usages in the File) can be quickly highlighted the use of a variable in the current File. Press Escape to clear the highlighting.

23, use the Alt – F3 (Search | Incremental Search) in the editor to realize fast lookup. Enter the characters in the “Search for:” prompt and use the arrow keys to Search forward and backward. Press Escape to exit.

24. Press Ctrl-J to execute some Live Template abbreviation that you can’t remember. For example, press “it” and then Ctrl-J to see what happens.

Introduce Variable integration helps you simplify complex declarations in your code. For example, in the code snippet below, select an expression in the code: then press Ctrl-Alt-v.

26. Ctrl-shift-j merges two lines into one and removes unnecessary Spaces to match your code format.

27, Ctrl – Shift – Backspace (Go to | Last Edit Location) allows you to jump to the code made in the Last place to change. Press Ctrl-shift-Backspace a few more times to see a deeper history of the changes.

28, using the Tools | Reformat Code… According to the Style of your Code reference (see the Options | IDE Setting | Code Style) format Code. Use the Tools | Optimize Imports… Can be set according to the view Options | IDE Setting | Code Style | Imports) automatically “optimization” Imports (remove useless Imports, etc.).

29, using the IDEA of Live Templates | Live Templates allow you to create many typical code in the blink of an eye. For example, type in a method. Press Tab again to see what’s going on. Use the Tab key to move around the different template fields. Look at the Options | Live Templates for more details.

30, to view a file modification of Local History, activate the Local in the right-click menu VCS | Show History… . Perhaps you can navigate through different versions of files, see their differences and then scroll back to any previous version. Use the same right-click menu item to see the history of changes in a directory. You won’t lose any code with this feature.

31. To understand the purpose of each menu item in the main menu, it may be helpful to move the mouse pointer over the menu item to display a short description of each item in the status bar at the bottom of the application frame.

Method 32, should be displayed in the Editor, the dividing line between open the Options | IDE Settings | Editor, select “Show method separators” check box (checkbox).

Use the Alt-up and Alt-Down keys to move quickly between different methods in the editor.

34. Use F2/ shift-F2 to jump between highlighted syntax errors. Ctrl-alt-down /Ctrl-Alt-Up shortcuts jump between compiler error messages or lookup results.

35, through the press Ctrl – O (Code | Override the Methods…). Base class-based methods can be easily overridden. To complete the current class implements (or abstract base class) the method of the interface, use the Ctrl -i (Code | Implement the Methods…). .

36. If the cursor is placed between the parentheses of a method call, pressing Ctrl-p displays a list of available arguments.

37. To quickly view the Java documentation for classes or methods used in the editor’s char, press Ctrl-Q (in the Show Quick JavaDoc pop-up menu).

38, like Ctrl-q (Show Quick JavaDoc displays simple Java documents), Ctrl-p (Show Parameter Info displays Parameter information), Ctrl-b (Go to Declaration jumps to Declaration), Shift-F1 (External JavaDoc External Java documents), and other shortcuts can be used not only in the editor, but also in the code completion right-click list.

39, Ctrl – E (View | Recent Files) pop up recently accessed Files right list. Select the file and press Enter to open.

40. It is easy to rename your classes, methods, and variables in IDEA and correct them automatically wherever they are used. Have a try, the editor caret on any one variable name then press Shift – F6 (Refactor | Rename…). . Type the new name to display in the dialog box and press Enter. You’ll browse to all the places where this variable is used and press the “Do Refactor” button to end the renaming operation.

41, want to be in any View (Project engineering View, the View Structure View Structure or other views) in a quick, choose the edit part (classes, documents, methods or fields), press Alt – F1 (View | Select in…) .

42. You may use SmartType code to do this when instantiating an object of known type after the “new” character. For example, type and then ctrl-shift-space:

43. It is also very easy to create the entire anonymous implementation for the interface in IDEA using SmartType code. For example, for some listeners, type Component Component; component.addMouseListener( new

);

Then press Ctrl-shift-Space again to see what happens.

44. SmartType code is also helpful when you need to set the value of an expression of a known type. For example, type String s = (

and press Ctrl-shift-space to see what comes up.

45. Quick lookup is available in all views: you can quickly locate an item by typing a character in the tree.

46, when you want to use a Code snippet to capture anomalies, this fragment is selected in the editor, press Ctrl Alt – T (Code | Surround with…). Then select “try/catch”. It automatically generates a catch block for all exceptions thrown in the code snippet. In the Options | File Templates | Code TAB you can also customize the catch block template. Other structures can be surrounded by other items in the list.

47. When using the code completion, use the Tab key to enter the highlighted sections of the pop-up list. Instead of accepting input with the Enter key, the selected name overwrites the rest of the name to the right of the stripper. This is especially useful when substituting one method or variable name for another.

The code completion feature shows you a suggested name when declaring a variable. , for example, start typing “private FileOutputStream” and then press Ctrl – Space in the Options | IDE Setting | Code can also be in Style for the local variables and parameters, instance and static field custom name.

Thanks to the author in this paper: blog.csdn.net/yufang131/a…