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 skills and shortcuts for using idea

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

Share

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

This article shows you what idea skills and shortcuts are. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. Set font: File- > setting- > Editor- > Font2, theme: File- > setting- > Appearance&Behavior- > Appearance3, set mouse hover prompt: File- > setting- > Editor- > General- > check Show quick documentation...4, display method separator: File- > setting- > Editor- > General- > Appearance- > check Show method separators5, ignore case hint: the default setting of idea is case sensitive prompt, for example, entering string will not prompt String, so it is not convenient to encode That is, set: File- > setting- > Editor- > General- > Code completion- > Match case check to remove 6, Auto Guide package, Auto Optimization Guide package: File- > setting- > Editor- > General- > Auto import- > check: Add unambiguous imports on the fly: quickly add explicit import Optimize imports on the fly: quickly optimize import Optimization means to automatically help useless import 7. Idea unified editing file coding: global encoding settings: File- > Other Setting-> Default setting

Current project settings: File- > setting- > Editor- > File Encoding8, idea automatically generate serialization id with shortcut keys: set setting- > Editor- > inspections- > serialization issues- > check the serializable class without in the diagram. When the entity class inherits the Serializable interface, double-click the mouse over the class and use the shortcut key alt+enter to generate serialVersionUID

Idea easy shortcut key 1, alt+enter intelligent fix 2, ctrl+alt+L beautification code 3, ctrl+alt+o optimization guide package 4, quick complete semicolon ctrl+shift+enter5, idea code recompile: Ctrl+F96, quick copy one line: Ctrl+D7, quick delete line: Ctrl+Y mobile Ctrl+Shift+ ↑ / ↓ or Alt+Shift+ ↑ / ↓ 8, alt+insert quick create file 9, printout shortcut key: sout10, mian method shortcut key: psvm11, for shortcut key iter12, automatic completion variable name: Ctrl+ Alt+ v13, Automatic completion attribute name: Ctrl + Alt+ f14, Quick implementation shortcut keys: Alt+shift+enter15, ctrl+e displays the most recently opened file 16, ctrl+shift+e shows the most recently edited file 17, ctrl+shift+backspace switches to the last edited location 18, alt+ ⬅ / ➡ switches around tab 19, alt+1 switches from edit area to project area esc or re-press alt+1 to switch from project area to edit area 20, ctrl+F12 lists the current class method collection 21, lists current class dependencies ctrl+shift+alt+u

22. List the method call hierarchy ctrl+h22 and ctrl+n to find the classes in the project. Click again to find the classes outside the project 23, ctrl+shift+n to find the files in the project, and click again to find the files outside the project. 24. Ctrl+shift+alt+n to find the methods & attributes in the project When looking up, press again to find methods outside the project & attribute 25, ctrl+f according to method 26 in the class, ctrl+shift+u case conversion 27, Home/ End move cursor to line header / end 28, ctrl+Home/ ctrl+End move cursor to file header / tail 29, alt+j selects the same character one by one

30. Ctrl+shift+alt+j selects the same character 31 on each line, shift+enter inserts a new line 32 at the cursor, Shift+Ctrl+ arrow and arrow keys move the cursor line 33, Alt+insert generates get,set method 34, Ctrl+Alt+L format code 35, ctrl+ p method parameter hint 36, ctrl+shift+F10 runs the current class 37, variable renaming shift+F6 will be modified in the whole class is very convenient 38, ctrl+alt+m method extraction (when solving cyclomatic complexity 39. Ctrl+shift+v calls up the pasteboard to view inheritance relationships the default shortcut key ctrl+h to view all inherited classes of the interface (command+alt+B)

Ctrl + r: current file content replacement, which refers to replacing matching characters in the currently open file, manipulating only one file.

Ctrl + shift + r: replace in the path, which means to find the character to be replaced under the selected directory or class package, and then enter the character to be replaced in the second input box. Click replace or replaceall in the lower right corner of the pop-up box.

40. DEBUG add breakpoint ctrl+f8 add conditional breakpoint ctrl+shift+f8 add conditional breakpoint debug run shift+f9 debug run expression evaluation alt+F8 expression evaluation Local History is a version recording tool included in IDEA, every modification of the file will be recorded in the Local History built-in template setting search postfix code writing time, ten lines of code in a second, without much to say is dry

There will be a large area of yellow background prompt in the xml of mybatis, which looks uncomfortable. How to get rid of the yellow background? Just follow the steps below.

1. Use the idea shortcut ctrl + alt+ s to open Settings. Find the Editor-> Inspections configuration page, remove the No data sources configured (no configured data source) option and the SQL dialect detection (SQL dialect detection) option from SQL, and click OK.

two。 Continue to open Settings. Go to the Editor-> General configuration page, select Injected language fragment, remove the Background option, and click OK.

Alibaba Cloud Toolkit

Set development, testing, diagnosis, deployment as one of the free local IDE plug-ins to help developers truly achieve one-click R & D deployment.

Increase the speed of R & D deployment by more than 8 times, and significantly reduce R & D costs

The above content is what are the idea skills and keyboard shortcuts? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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