Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the shortcuts that may be ignored in Intellij IDEA development

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you about the shortcut keys that may be ignored in Intellij IDEA development. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

IDEA, whose full name is IntelliJ IDEA, is an integrated environment for java language development. IntelliJ is recognized as one of the best java development tools in the industry, especially in intelligent code assistant, code automatic hint, refactoring, J2EE support, various version tools (git, svn, github, etc.), JUnit, CVS integration, code analysis, innovative GUI design and other functions can be said to be extraordinary.

IntelliJ IDEA tools are excellent in some aspects, IDEA advocates only programming to save programmers' workload, and has many features, such as coding assistance JavaScript automatic completion function, html page coding function, flexible typesetting function, etc., compared to Eclipse's IDE tool, it is much more practical. The following editor describes the shortcuts commonly used by IntelliJ IDEA in development and the shortcuts that may be ignored, and so on.

The most commonly used shortcut keys for Intellij IDEA

Ctrl+E, which can display a list of recently edited files

Shift+Click can close files

Ctrl+ [or] can skip to the beginning and end of curly braces

Ctrl+Shift+Backspace can jump to the place where it was last edited

Ctrl+F12, which can display the structure of the current file

Ctrl+F7 can query the reference of the current element in the current file, and then press F3 to select

Ctrl+N, you can quickly open classes

Ctrl+Shift+N, you can quickly open files

Alt+Q can see the declaration of the current method

Ctrl+W can choose words, then statements, and then functions.

Alt+F1 can position the element you are editing in each panel

Ctrl+P, which can display parameter information

Ctrl+Shift+Insert can select the clipboard contents and insert

Alt+Insert can generate constructors / Getter/Setter, etc.

Ctrl+Alt+V can introduce variables. For example, assign the SQL in parentheses to a variable

Ctrl+Alt+T can wrap the code together, such as try/catch

Alt+Up and Alt+Down can move quickly between methods

Intellij IDEA query shortcut key

CTRL+N lookup class

CTRL+SHIFT+N lookup file

CTRL+SHIFT+ALT+N finds methods or variables in a class

CIRL+B looks for the source of the variable

CTRL+ALT+B finds all the subclasses

CTRL+SHIFT+B finds the class of the variable

CTRL+G positioning line

CTRL+F looks for text in the current window

CTRL+SHIFT+F looks for text in the specified window

CTRL+R replaces text in the current window

CTRL+SHIFT+R replaces text in the specified window

ALT+SHIFT+C finds modified files

Recently opened files by CTRL+E

F3 look down for the location of the keyword

SHIFT+F3 up to the location of the keyword

F4 find the source of the variable

The characters selected by CTRL+ALT+F7 find where the project appears.

CTRL+SHIFT+O pops up to show what to find

Intellij IDEA automatic code

Enter the import package of ALT+ and correct it automatically.

CTRL+ALT+L format code

CTRL+ALT+I automatic indentation

CTRL+ALT+O optimizes imported classes and packages

ALT+INSERT generates code (such as GET,SET methods, constructors, etc.)

Code recently changed by CTRL+E

CTRL+SHIFT+SPACE automatic completion code

CTRL+ space code hint

CTRL+ALT+SPACE class name or interface name prompt

CTRL+P method parameter hint

CTRL+J automatic code

CTRL+ALT+T puts the selected code in TRY {} IF {} ELSE {}

Ctrl+Shift+T creates a unit test

Intellij IDEA copy shortcut

CTRL+D copy Lin

CTRL+C selects the code to copy

CTRL+X clipping, deleting Lin

Other shortcuts to Intellij IDEA

CIRL+U case switching

CTRL+Z retrogression

CTRL+SHIFT+Z forward

CTRL+ALT+F12 Explorer opens a folder

ALT+F1 finds the location of the directory where the file is located

SHIFT+ALT+INSERT vertical editing mode

CTRL+/ comments / /

CTRL+SHIFT+/ comments / *... * /

CTRL+W selects the code. Continuous press will have a switching effect.

CTRL+B quickly opens a class or method at the cursor

ALT+ ← / → toggles code view

CTRL+ALT ← / → returns the location where it was last edited

ALT+ ↑ / ↓ quickly moves and locates between methods

SHIFT+F6 refactoring-renaming

CTRL+H displays the class structure diagram

CTRL+Q displays comment documents

ALT+1 quickly opens or hides the project panel

The CTRL+SHIFT+UP/DOWN code moves up / down.

The CTRL+UP/DOWN cursor jumps under the first or last line

The ESC cursor returns to the edit box

The SHIFT+ESC cursor returns to the edit box to close the useless window

F1 help

CTRL+F4 forced shutdown

Shortcuts that are not commonly used in Intellij IDEA

Alt+Enter automatic repair

Ctrl+Shift+Alt+N can quickly open symbols

Ctrl+Shift+Space can give Smart hints in many cases.

Alt+F3 can find it quickly.

Ctrl+/ and Ctrl+Shift+/ can annotate code

Ctrl+Alt+B can jump to the implementation of abstract methods

Ctrl+O can choose the method of the parent class to override

Ctrl+Q can watch JavaDoc.

Ctrl+Alt+Space class name or interface name prompt

Ctrl+J automatic code

Ctrl+Shift+F7 can highlight the use of the current element in the current file

Ctrl+Alt+Up / Ctrl+Alt+Down can quickly jump to search results

Ctrl+Shift+J can integrate two lines

Alt+F8 calculates variable values

Keyboard shortcuts reference: http://blog.yoodb.com/yoodb/article/detail/1326

Because each person may use different IntelliJ IDEA memory on the computer, it can be optimized according to the configuration of the machine itself. The specific optimization parameters are as shown in the figure:

Note:-Xms512m sets the initial memory size to improve the startup speed of Java programs

-Xmx750m sets the maximum number of memory. Increasing this value can reduce the frequency of memory Garage collection and improve program performance.

-Xverify:none turns off Java bytecode verification, which speeds up class loading and eliminates the need to load classes during startup only for verification purposes, reducing startup time

-XX:+UseParNewGC uses a parallel collection algorithm

-server controls the memory garage mode, so you don't have to spend a minute or two waiting for memory garage collection.

-Dsun.awt.keepWorkingSetOnMinimize=true allows IDEA to be minimized to the taskbar with occupied memory. When you return to IDEA, it can be displayed quickly, rather than the gray interface gradually showing the entire interface, speeding up the speed of returning to the original interface.

These are the shortcuts that may be ignored in the Intellij IDEA development that Xiaobian shared with you. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report