IntelliJ idea Common Settings explanation 1

Source: Internet
Author: User

IntelliJ idea has a lot of user-friendly settings we have to explain separately, and because of these humanized settings let us these IntelliJ idea die loyalty powder more loyal to use it and share it.

Common settings

  • IntelliJ Idea's code hints and supplemental features have one feature: case-sensitive. As shown in callout 1, the default is case First letter -sensitive.
  • Case sensitivity is true: for example, if we enter IntelliJ in a Java code file stringBuffer , idea will not help us to hint or add code, but if we enter StringBuffer it we can do code hints and additions.
  • If you want to be case-insensitive, change to an None option.

  • As shown in Gif, this feature is used to quickly set the code check level. I usually use this feature when editing large files. IntelliJ idea for editing large files is not much advantage, very card, because it has a variety of checks, this is very memory and CPU, so in order to speed up the reading and writing of large files, I will generally be set to temporarily None .
  • InspectionsFor the highest level check, you can check the spelling of words, syntax errors, variables used, calls between methods, and so on.
  • SyntaxYou can check the spelling of the word, simple syntax error.
  • NoneNo checks are set.

  • As shown in callouts 1 and 2, the default IntelliJ idea is that there is no automatic import package enabled.
  • Tick the label 1 option, IntelliJ idea will automatically help us optimize the imported package when we write the code, such as automatically removing some unused packages.
  • Tick the label 2 option, IntelliJ idea will automatically help us to import the required packages when we write the code. But for those same-name packages that need to be Alt + Enter imported manually, IntelliJ idea is not yet smart enough to make judgments for us.

As shown in callout 1, when one of the packages imported in our Java class exceeds the specified number set here, it is replaced with a * number.

As shown in Gif, IntelliJ idea will collapse empty packets by default, which will cause the package names to be joined together. But some people do not like this structure, like the whole structure is full tree, so we can remove the check box in the demo.

As shown in callout 1, IntelliJ idea has a 省电模式 status called, and IntelliJ idea turns off code checking and code hinting when this mode is turned on. So in general I would also think that this is a kind 阅读模式 of, if you encountered in the development process of sudden code files can not be checked and prompted to see if there is a way to turn on this feature.

As shown in Gif, when we press Ctrl + Shift + N to open a file, we can directly navigate to the number of rows to change the file. Generally we are in the CSS, according to the console to find a null pointer exception, the use of this method will be relatively high speed.

As shown in the red circle, we can set the default folding or expanded settings for the specified code type, and the tick indicates that the code that represents the type is collapsed by default when the file is opened, and the reverse is omitted.

As shown in Gif, IntelliJ idea supports vertical or horizontal grouping of code. Generally in the large file modification, some changes in the file, some content under the file, if the back and forth operation may be very inefficient, this method can be much better. Of course, the premise is that their display resolution is high enough.

As the arrows show, IntelliJ idea defaults to checking the spelling of the word, and some people may have obsessive-compulsive disorder and don't like to see a wavy line underneath the word to remove the tick. But I personally suggest that this should not be closed, because spell checking is a good feature, when everyone's name is standard, this can be handy to help us find the code because of the spelling error caused by the bug.

As shown in Gif, we can drag and shift the sub-window of the component window, sometimes setting our head or the effect is not satisfactory, we need to click this button to restore the window.

As shown in Gif, Ctrl + D this shortcut will be used to copy and paste the selected content before the shortcut is modified, but the position of the sticker is added in the original position, I personally do not like this style, I like to copy the selected line number of the complete content, so modified, modified effect such as Gif demo.

As shown in Gif, the default Ctrl + 空格 shortcut key is the basic code hints, supplemental shortcut keys, but because our Chinese system basic This shortcut is taken up by the input method, so we found that no matter how the press is not prompt code effect, the reason is here. I personally recommend modifying this shortcut to Ctrl + 逗号 .

As shown in Gif, the IntelliJ idea 14 version does not show memory usage by default, and it doesn't matter for large memory machines, but it is best to display a machine with small memory. As a demonstration, a partial memory recovery can be done after a click.

As shown in callout 1, when many files are open, IntelliJ idea defaults to displaying all open file name Tab lines. But my personal habit is to use multiple lines, more efficient than a single line, because the single line will hide more than the interface part of the Tab, so find files inconvenient.

As Gif shows, the default IntelliJ idea for the Java code of the single-line comment is to put the comment slash at the beginning of the number of rows, I personally think that such a single-line comment is very ugly, the entire code style is very ugly, so it is generally set to a single-line comment two slash followed in the head of the code.

As Gif shows, the first curly braces of the default Java code are not wrapped, but some people like the curly braces of the symmetric structure, which can be set. For this feature I do not reject, I personally also quite like this symmetric structure, but because this structure will occupy the line, so that the number of file lines, so although I personally like, but also do not set.

As shown in callout 1, if the make or rebuild process is slow, you can increase this heap memory settings, general large memory machine settings 1500 above all does not matter.

  • As shown in callout 1, when you start IntelliJ idea, the last used item is opened by default when this option is checked. This is good if you have only one project, but if you have more than one project, it is advisable to close it, so when you start IntelliJ idea you can choose a project that you recently opened.
  • As shown in the red circle, this option is set when we open a Project window, and then open a Project window is the choice of how to open the way.
  • Open project in new windowOpen each time with a new window.
  • Open project in the same windowReplace the currently open item each time so that there is only one Project window on the desktop.
  • Confirm window to open project inEach time a popup appears, let's choose to open or replace the current project window with a new window.

As shown in Gif, for code that is too long in the landscape we can make a soft branch view. The branch effect caused by the soft branch is IntelliJ idea set, the essential code is no real branch.

As shown in Gif, for code that is too long in the landscape we can make a soft branch view. The branch effect caused by the soft branch is IntelliJ idea set, the essential code is no real branch.

As indicated by the arrows, this setting increases Ctrl + E the number of record files displayed by the pop-up layer.

As the arrows show, this setting increases the number of open tabs, and when we open more files than that number, the open files are replaced by the newly opened.

  • As shown in callout 1, the suffix type file for this area will be opened in IntelliJ idea in the form of callout 2.
  • As shown in callout 3, we can ignore certain suffix files or folders in IntelliJ idea, for example, I usually .idea ignore this folder.

IntelliJ idea Common Settings explanation 1

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.