In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what are the problems related to intellij code tips. The quality of the article content is high, so Xiaobian shares it with you for reference. I hope you have a certain understanding of relevant knowledge after reading this article.
IntelliJ
IDEA Code Hint Questions
1. Use Alt-Insert (Code) when writing code| Generate...) can create getters and setters for any field in the class.
A special variable in the CodeCompletion attribute is that activating Ctrl-Alt-Space completes class names that are or are not in the current file. The import flag is created automatically if the class is not introduced.
3. Use the Ctrl-Shift-V shortcut key to insert the most recently used clipboard content selection into text. When you use it, a dialog box will pop up containing the clipped content, from which you can select the part you want to paste.
4, the use of CodeCompletion (code completion) attribute can quickly complete a variety of different statements in the code, the method is to type a class name first a few letters and then use Ctrl-Space to complete the full name. If there are multiple options, they are listed in the quick lookup list.
5. Use Ctrl-/and Ctrl-Shift-/to comment/decomment lines and blocks of code.
6. -/annotate/deannotate the current line or selected code block with a single comment mark ("//…"). Ctrl-Shift-/can surround the selected block with block comment marks ("/*…*/"). To uncomment a block of code press Ctrl-Shift-/anywhere in the block.
Press Alt-Q (View)| Context Info) allows you to view the declaration of the current method without moving the code. Pressing twice in a row displays the currently edited class name.
8. In the editor, Ctrl-D can copy the selected block or the current line without the selected block, Ctrl-Y is the opposite.
9. Ctrl-W (Select Word) The function in the editor is to select the word at the character, and then select the extended area of the source code. For example, first select a method name, then the expression that calls the method, then the entire statement, then the containment block, and so on.
Use the Escape key in any tool window to move focus to the editor.
Shift-Escape not only moves focus to the editor but also hides the current (or last active) tool window.
The F12 key moves focus from the editor to the most recently used tool window.
An easy way to see the value of any expression while debugging your program is to select text in the editor (you can press Ctrl-W several times to do this more efficiently) and press Alt-F8.
12. To open the browser for Java documents using the class or method used in the editor's drop-out, press Shift-F1 (External JavaDoc from the right-click menu).
To use this function, you need to add the browser path to the "General" option (Options| IDE Settings), in addition to creating Java documents to join the project (File)| Project Properties)。
Ctrl-F12 (View)| File Structure Popup) key You can quickly navigate through the currently edited file.
It displays a list of members of the current class. Select an element to navigate and press Enter or F4. To easily navigate to an entry in a list, simply type its name.
Placing the cursor over a marker or its checkpoint in the code and pressing Alt-F7 (Find Uses…in the right-click menu) will quickly find the location of a class, method, or variable used throughout the project.
Ctrl-N (Go to| Class...) and typing the name of the class can quickly open any class in the editor. Select the class from the drop-down list that appears.
You can do the same by using Ctrl-Shift-N (Go to).| File...) Open a non-Java file in the project.
To navigate the declaration of a class, method, or variable 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 and clicking the mouse button over the viewing point.
Place the cursor over the viewing point and press Ctrl-Alt-B to navigate to the implementation code of an abstract method.
To see the inheritance hierarchy of a selected class, press Ctrl-H (Browse Type Hierarchy). You can also activate the Inheritance View in the Editor to view the inheritance relationships of the currently edited class.
Ctrl-Shift-F7 (Search)| Highlight Usage in File) quickly highlights where a variable is used in the current file. Press Escape to clear the highlight.
Alt-F3 (Search)| Incremental Search) enables quick lookups in the editor.
Enter characters in the Search for: prompt and use the arrow keys to search forward and backward. Press Escape to exit.
Press Ctrl-J to perform some Live Template abbreviations that you can't remember. For example, press "it" and press Ctrl-J to see what happens.
Slipped Conditions
Locks in Java
Read/write locks in Java
reentry lock
semaphore
blocking queue
thread pool
parser synchronizer
What are the intellij code tips to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.