In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article "how to use IDEA" is not quite understood by most people except programmers. Today, in order to make you better understand "how to use IDEA", the editor summed up the following content, which has a certain reference value, the detailed steps are clear, and the details are handled properly. I hope you can get something through this article. Let's take a look at the specific content.
Use and summary of IDEA
1. Download IDEA and common software
II. Installation and configuration of IDEA
Installation: (IDEA version is IntelliJ IDEA 2018.3.6 x64)
Click to install the package all the way by default, and you can take the next step.
Configuration: set up idea64.exe.vmoptions (the file is in the bin file in the installation directory, the number of digits of the installation system is selected to modify the file, my computer is 64-bit)
The purpose of configuring this file is to make the software run more smoothly and fully reflect the performance of the computer. In addition to configuring this software, you can also remove some plug-ins that you do not need and make the software more fluent.
-Xms500m
-Xmx1500m
-XX:ReservedCodeCacheSize=500m
-XX:SoftRefLRUPolicyMSPerMB=100
Configuration diagram
Configure the local maven:
Click setting = > search maven (or click Build,Execution,Deployment to find Build Tools== > maven) = > maven home directory, select maven3,User settings file tick, and select the settings.xml address of the local maven (under the premise of configuring this file, Local repository will automatically find the location directory of the file configuration) the relevant configuration below
Configuration diagram
III. Installation and use of common plug-ins for IDEA
Alibaba Java Coding Cuidelines: Alibaba java Development Protocol
Activate-power-mode: effect plug-in bubbling effect
Free MyBatis plugin: fast access between DAO interface and XML file
Iedis: plug-in for redis
Lombok: development tools plug-in
Zookeeper
3.1. Maven configuration Ali image (the compressed package I downloaded is decompressed to disk D, and the setting.xml configuration in maven3.6)
Here are some of the main configurations of maven, including the specification of the jdk version and the modification of the location of the default maven local jar package, and the configuration of Ali central repository
D:\ apache-maven-3.6.1\ lib
Alimaven
Aliyun maven
Http://maven.aliyun.com/nexus/content/groups/public/
Central
Jdk-1.8
True
1.8
1.8
1.8
1.8
3.2. Plug-in usage, plug-in usage that needs to be recorded:
Lombok
@ Getter, @ Setter generate our get set method
@ RequiredArgsConstructor generates a constructor with the annotated variable @ NonNull
@ ToString converts our object to a string with a member variable worth a string
@ EqualsAndHashCode helps us rewrite the equals and hashCode methods to compare objects
@ Data {@ Getter, @ Setter, @ RequiredArgsConstructor, @ ToString, @ EqualsAndHashCode}
IV. Common functions and shortcuts of IDEA
Ctrl + F search
Ctrl + R substitution
Ctrl + Z undo
Ctrl + Y deletes the line where the cursor is located
Ctrl + X cut the line of the cursor
Ctrl + C copy the line of the cursor
Ctrl + V paste the line of the cursor
Ctrl + D copies the cursor line to the next line
Ctrl + W Progressive selection Code Block
Ctrl + E opens a history file that we modified
Ctrl + N looks for files based on class names
Ctrl + J list Live Temples
Input parameters of Ctrl + P display method
Ctrl + U enters the parent class of the class where the cursor is located
Ctrl + B jumps to the declaration of the method / variable where the cursor is located-Ctrl + left mouse button click method name / variable name
Ctrl + / comment cursor line or selected line use release comment Ctrl + Shift + / generate block-level comments again
Ctrl + F1 displays the error message of the error line where the cursor is located
Ctrl + F3 jumps to the next position where the selected word appears
Ctrl + Table jumps in the open file
Ctrl + keyboard around key jump at the beginning and end of the word
The up and down keys of the Ctrl + keyboard slide up and down the editing area
Alt + Enter proposes to modify the error code at the cursor.
Alt + Insert quickly generate some commonly used code
Shift + Table Unindent
A line under the Shift + Enter cursor vacates a line above the line where the Ctrl + Alt + Enter cursor is located.
Left and right sliding of the Shift + mouse wheel editing area
Ctrl + Alt + L pair formatting code
Ctrl + Alt + left-click on the keyboard to return to the last modified place
Ctrl + Alt + Keyboard right-click back the last modified place
Ctrl + Shift + Z cancel undo
Ctrl + Shift + C copy the current file disk path
Ctrl + Shift + keyboard + key to expand the code block
Ctrl + Shift + Keyboard-key to collapse the code block
Ctrl + Shift + Enter automatically ends the current line and adds
Thank you for your reading, I hope you have a certain understanding of the key issue of "how to use IDEA", the specific use of the need to do your own experiments to understand, quickly try it, if you want to read more related knowledge articles, 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.
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.