In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use IntelliJ IDEA keyboard shortcuts". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use IntelliJ IDEA keyboard shortcuts.
Most of IntelliJ IDEA's commands related to editing, navigation, refactoring, debugging, and other tasks have keyboard shortcuts. Remember that these hotkeys can help you stay more productive by putting your hand on the keyboard. Let's take a look at it.
[dl] 15-841 [/ dl]
The following table lists some of the most useful shortcuts:
Shortcut Action double Shift search everywhere
Find anything related to IntelliJ IDEA or your project, and then open it, execute it, or jump to it.
Ctrl+Shift+A search operation
Find and execute commands, open tool windows, or search settings.
Alt+Enter displays intentional actions and quick fixes
Fix highlighted errors or warnings and improve or optimize code construction.
F2
Shift+F2
Navigate between code issues
Skip to the next or previous highlighted error.
Ctrl+E view recent files
Select a recently opened file from the list.
Ctrl+Shift+Enter completes the current declaration
Insert all necessary trailing symbols and place the caret where you can start typing the next statement.
Ctrl+Alt+L reformats the code
Reformats the entire file or selected fragment according to the current code style settings.
Ctrl+Alt+Shift+T call refactoring
Refactoring elements under the caret, such as secure deletion, copy, move, rename, etc.
Ctrl+W
Ctrl+Shift+W expands or narrows the selection
Increase or decrease the range of choices according to a specific code structure.
Ctrl+/
Ctrl+Shift+/ add / remove line or block comments
Comment out a line or piece of code.
Ctrl+B went to declare
Navigate to the initial declaration of the instantiated class, called a method or field.
Alt+F7 lookup usage
Displays all locations where code elements are used throughout the project.
Alt+1 focus Project tool window Escape follow Editing
If you use one of the predefined keyboard mappings in your operating system, you can print the default keyboard mapping reference card and leave it on the desktop for review as needed. The cheat sheet can also be found under help | help. Keyboard mapping reference.
Choose the correct keyboard mapping
To view the keyboard mapping configuration, open the Settings / preferences dialog box, Ctrl+Alt+S and select Keyboard Mapping.
Use predefined keyboard mappings
IntelliJ IDEA automatically recommends a predefined keyboard mapping based on your environment. Make sure it matches the operating system you are using, or select the operating system that matches the shortcut in another IDE or editor you are used to, such as Eclipse or NetBeans.
Adjust your keyboard mapping
You can modify a copy of any predefined keyboard map to assign your own shortcuts to commands you use frequently.
Import Custom Button Mapping
If you have a custom key mapping that you are used to, you can transfer it to the installation.
In addition to the default keyboard mapping set, you can add more plug-ins (such as keyboard mappings for GNOME and KDE): open the Settings / preferences dialog box Ctrl+Alt+S, select plug-ins, and search for keyboard mappings in Marketplace.
Learn shortcuts at work
IntelliJ IDEA offers several possibilities for learning shortcuts:
The find operation is the most important command, which allows you to search for commands and settings in all menus and tools.
Press Ctrl+Shift+An and start typing for a list of recommended actions. Then select the necessary actions and press Enter to perform them.
Key Promoter X is a plug-in that displays pop-up notifications with corresponding keyboard shortcuts whenever you use the mouse to execute a command. It also recommends creating shortcuts for frequently executed commands.
If you use one of the predefined keyboard mappings in your operating system, you can print the default keyboard mapping reference card and leave it on the desktop for review as needed. The cheat sheet can also be found under help | help. Keyboard mapping reference.
To print a non-default or custom keyboard mapping, use the keyboard mapping exporter plug-in.
Use advanced featur
You can use the following useful features to further increase productivity:
Quick list
If you often use a set of actions, create a quick list to access them using custom shortcuts. For example, you can try using the following predefined Quick list:
ReFactor the Ctrl+Alt+Shift+T
VCS operates Alt+ `
Smart key
IntelliJ IDEA provides many typing aids, such as automatically adding paired tags and quotation marks and detecting CamelHump words.
Speed search
When the focus is on a tool window with a tree, list, or table, start typing to see the match.
Press twice
Many operations in IntelliJ IDEA can provide more results when executed multiple times. For example, when you call the base code with a field, parameter, or part of a variable declaration, Ctrl+Space suggests a name based on the type of project in the current scope. If you call it again, it will include classes that are available through module dependencies. When the suggestion is called for the third time in a row, the suggestion list will include the entire project.
Resize the tool window
You can resize the tool window without the mouse:
To resize the vertical tool window, use Ctrl+Shift+Left and Ctrl+Shift+Right
To resize the horizontal tool window, use Ctrl+Shift+Up and Ctrl+Shift+Down
At this point, I believe you have a deeper understanding of "how to use IntelliJ IDEA keyboard shortcuts". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.