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

Shortcut Keys and Environment configuration of Idea

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "shortcut keys and environment configuration of Idea". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "shortcut keys and environment configuration of Idea".

Shortcut key

Double-click shift to find the file

Ctrl + shift + f to find the global

Ctrl + e recently modified file

Ctrl + shift + v open the clipboard

Ctrl + alt + h

Ctrl + alt + m extraction method

Ctrl + d copy the current line to the next line

Shit + enter starts a new line

Alt + shift + x closes all tabs

Ctrl + shift + c open the clipboard

Ctrl+Alt+L format code

The intellij idea replacement string function has 2 shortcut keys

Ctrl+r

Ctrl+shift+r

Replace the content of this page and replace the content in multiple files, respectively

Shift + F6 rename file name, variable name

Ctrl + p parameter prompt

Alt + /

Profile idea64.exe.vmoptions

-Xms128m. Machines with 16 GB memory can be set to-Xms512m.

(set the initial amount of memory, and increasing this value can increase the startup speed of the Java program. )

-Xmx750m. Machines with 16 GB memory can be set to-Xmx1500m.

(setting the maximum number of memory and increasing this value can reduce the frequency of memory Garage collection and improve program performance.)

-XX:ReservedCodeCacheSize=240m. Machines with 16G memory can be set to-XX:ReservedCodeCacheSize=500m.

(retain the amount of memory consumed by the code)

Cancel the update

The mouse wheel changes the font size

Guide package alt + enter

Add unambiguous imports on the fly dynamically adds explicit imports

Method delimiter

Prompt to ignore case

Multi-line display edit tab

Font

Edit area and console fonts

Comment font

Doc Comment Text modifies the font color of document comments

Block comment modifies the font color of multiline comments

Line comment modifies the font color of the line comment

Multiple import packages are replaced with *

Document comment information for class headers

Commonly used preset variables

${PACKAGE_NAME} the name of the target package where the new cla ss or interface will be created.$ {PROJECT_NAME} the name of the current project.$ {FILE_NAME} the name of the PHP file that will be created.$ {NAME} the name of the new file which you specify in the New File dialog box during the file creation.$ {USER} the login name of the current user.$ {DATE} the current system date.$ {TIME} the current system time.$ {YEAR} the current year.$ {MONTH} the Current month.$ {DAY} the current day of the month.$ {HOUR} the current hour.$ {MINUTE} the current minute.$ {PRODUCT_NAME} the name of the IDE in which the file will be created.$ {MONTH_NAME_SHORT} the first 3 letters of the month name. Example: Jan, Feb, etc.$ {MONTH_NAME_FULL} full name of a month. Example: January, February, etc./*** @ date ${DATE} ${TIME} * @ create ${YEAR}-${MONTH}-${DAY} ${TIME} * @ Date: ${DATE} ${TIME} * / @ version creation time: ${date} ${time} / * * @ author*@creator Xxx* @ date ${YEAR}-${MONTH}-${DAY} ${TIME} * /

Coding

Transparent native to ascii conversion is mainly used to transform ascii, which is usually checked, otherwise the comments in the Properties file will not be displayed in Chinese.

Automatic compilation

Compile independent modules in parallel compiles independent modules in parallel

If there is no code hint, uncheck the power saving mode Power Save Mode

IntelliJ IDEA has a state called power saving mode, and when turned on, IntelliJ IDEA turns off functions such as code checking and code hints. Therefore, it is generally thought that this is a kind of reading.

Read mode, if you encounter a sudden code file that cannot be checked and prompted during development, you can check to see if the function is enabled here.

Annotation method Servlet template:

Template Templates

Editor Live Templates and Editor General Postfix Completion

The difference between the two: Live Templates can be customized, but Postfix Completion cannot. At the same time, some operations provide templates for both. Postfix Templates is 0.01s faster than Live Templates.

For example:

1. Psvm: can generate main method

2. Sout: System.out.println () Quick output

Something like this:

Soutp=System.out.println ("method parameter name =" + parameter name)

Soutv=System.out.println ("variable name =" + variable)

Soutm=System.out.println ("current class name. Current method"); "abc" .sout = >

System.out.println ("abc")

3. Fori: can generate for loop

Something like this:

Iter: can generate enhanced for loop itar: can generate ordinary for loop

4. List.for: a for loop that generates a collection list

List list = new ArrayList ()

Input: list.for can be output

For (String s:list) {

}

Another example: list.fori or list.forr

5. Ifn: if can be generated (xxx = null)

Something like this:

Inn: can generate if (xxx! = null) or xxx.nn or xxx.null

6. Prsf: can generate private static final

Something like this:

Psf: can generate public static final

Psfi: can generate public static final int

Psfs: can generate public static final String

Modify template

Tomcat

Install gsonformat from a central warehouse

Debug

Clear cach

Automatic update check

Thank you for reading, the above is the content of "shortcut keys and environment configuration of Idea". After the study of this article, I believe you have a deeper understanding of the shortcut keys and environment configuration of Idea, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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