Use the basic setup of IntelliJ idea before development to help improve development efficiency

Source: Internet
Author: User

2. Interface Font Size setting

File menu->settings->appearance->override default fonts by (not recommended):
Name: Song Body (Chinese is recommended to prevent garbled characters in Chinese.) The original Chinese font name is blank, just pull the list box to the end of a random selection and then apply, the Chinese font name appears, and then select the font you like. )
Size:18

3. Code Font Size setting

File menu->settings->editor->color&font->font
First click "Save As ..." Saved as custom font settings, and then modify the size size:18


4, solve the code Chinese garbled

Click gbk-in the lower right corner of the status bar to select UTF-8, then select "Reload" or "convert" as appropriate.


5, Code display line number

File menu->settings->editor-appearance:show Line numbers

6. set IntelliJ IDEA smart hint ignore case

Editor-code Completion page has a case sensitive completion, can be set only the first letter sensitive, completely sensitive or insensitive.


7. Add custom code completion

File menu->settings->live Templates

Change the "By default expand with Tab" to "Space", which is more in line with the VS habit.

Click "+" on the right to create a new templategroup with the name user.
Then add the custom livetemplate under the user group:
For
[Java] view plain copy for (int $INDEX $ = 0; $INDEX $ < $LIMIT $; $INDEX $++) {$END $}
If
[Java] view plain Copy if ($END $) {}
St
[Java] view plain copy String
Try
[Java] view plain copy try {$END $} catch (Exception e) {e.printstacktrace (); }

Print

SYSTEM.OUT.PRINTLN ($END $);

while

while ($END $) {

}


8, change the file automatic comment, the default generated file comments are:

[Java] view plain copy/** * Created by ${user} on ${date}. */
Change method:

Open Menu: file-settings Open the option settings and locate the File and Code templates--includes--file Header, modified to:

[Java] view plain copy/** * Created by sing on ${date}. * Desc: */

Select Templates-class, modify:

[Java] view plain copy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.