This is the 8th day of my participation in Gwen Challenge

I graduated with a master’s degree in computer engineering, and my job is big data engineer. Public number: Xiao Han senior take you to learn; Video number: Xiao Han senior take you to learn! Share big data, postgraduate entrance examination and other dry knowledge, welcome to pay attention to!

Hadoop framework HDFS data flow (interview key), mainly explains the HDFS A data flow interview important knowledge points. Eclipse was popular with Java developers, and still is today. Today xiaobian to introduce you to the IntelliJ IDEA development tool, it is currently one of the developers favorite development tools, it is no exaggeration to say: even the first can be removed. Today, I’m going to introduce some of the Settings that we see in our daily development. First of all need friends, please make your own installation, reference links as follows: www.cnblogs.com/zwxo1/p/122…

First, we install IDEA. We can also open the IDEA by clicking Setting or toolbar TAB under File, as shown in the screenshot below:

Appearance & Behavior 1.1 Set theme and font **

There are three themes provided by default: IntelliJ, Darcula, and Windows. Here you can choose according to your preference.

  • If you want more theme effects, you can download them from www.riaway.com/

  • Once downloaded, import the themes: file – > Import setttings – > select the downloaded theme JAR file – > Confirm all the way – > Restart. After the restart, the new theme is automatically enabled. If the function is disabled, you can select one of the following methods:

After clicking the button, search for the following plug-in – Install – restart IDEA in the networking environment:

If you are not satisfied with the theme plug-in installed, you can also find the plug-in and uninstall it. – Restart IDEA

Can be.

2. Editor – General

2.1 Setting the Mouse Wheel To Change the Font Size (negligible)

We can check this setting and add Ctrl + mouse wheel shortcuts to control the font size display of code.

Import optimization imports on the fly Add unambiguous imports on the fly

IntelliJ IDEA displays all open file names on a single line by default when opening many files, as shown in the figure above. However, my personal habit now is to use multiple lines, which is more efficient than a single line, because a single line will hide more than part of the Tab interface, so it is not convenient to find files.

4. Editor — Color Scheme

4.1 Modify the font, font size, and line spacing of the current theme (negligible)

If the current theme does not want to use the default font, font size, and font line spacing, you can also set them separately:

4.2 Modify the font and font size of the console output for the current theme (negligible)

Doc Comment -text: Changes the font color of the document comments. Block comment: Modify the font color of multi-line comments; Line comment: Changes the font color of the Line comment.

5. Editor — Code Style

5.1 Set the number of imports exceeding the specified number to * (negligible)

6. Editor – File and Code Templates

6.1 Modifying The Document Comment Information of a Class Header

7. Editor – File Encodings

7.1 Setting the project File Encoding

Transparent native-to-ASCII conversion Transparent native-to-ASCII conversion is used to convert ASCII data. Transparent native-to-ASCII conversion is used to convert ASCII data.

8. Build,Execution,Deployment

Setting up automatic compilation

(1) Construction is the process of “producing” a running project by using Java code, framework configuration files, internationalization and other resource files, JSP pages and pictures as “raw materials”.

(2) Intellij Idea is not automatically compiled by default, while Eclipse is automatically compiled by default: Many of our friends moved from Eclipse to Intellij, which often caused us to forget to recompile the modified Java class files when we needed to manipulate the class files, and instead operate on the old files.

As shown above, IntelliJ IDEA has a state called power Saving mode, which turns off features like code checking and code prompting. Therefore, it can also be considered as a reading mode. If you encounter a sudden code file cannot be checked and prompted during development, you can check to see if this function is enabled here.

This section mainly introduces shortcut keys of IDEA and some coding templates to improve work efficiency.

For those of you who have used Eclipse before and are used to its shortcuts, switch to Eclipse. If not, if you are new to IDEA like xiaobian, you don’t need to switch.

3. Specify shortcut keys to view or modify its functions

IntelliJ Idea Shortcut list links:

Blog.csdn.net/fmwind/arti…

**1. Live Templates allows you to configure common code abbreviations so that predefined patterns appear when you type them. This improves development efficiency and adds personalization. The simplest example is system.out.println () when typing sout in Java; Official introduction Live Templates: https://www. * * jetbrains.com/help/idea/using-live-templates.html

2. An existing common template is available

Postfix Completion defaults to:

The difference: Live Templates can be customized, but Postfix Completion cannot. Also, some operations provide Templates for both, and Postfix Templates is 0.01 seconds faster than Live Templates.

Live Templates ** If you don’t feel comfortable with an existing template, you can change it:

Change 1: If you are not used to calling main by calling PSVM, you can change to using main like Eclipse.

IDEA provides a lot of Templates out of the box. But you can also create new templates to suit your needs.

Today, the common Settings, shortcuts, and template design are all common at work. You can save it for later when you need it. Xiaobian will continue to update big data and other content, please stay tuned. More exciting content, please pay attention to the public number: Xiao Han senior take you to learn