Intellij Idea 4 new features code editing (code editing)

zhaozj2021-02-16  41

Editing Files with Syntax Highlighting (File Edit Time Law Highlight)

Idea Supports the Editing of JavaTM, JSP, XML, HTML Files, As Well As Custom File Types That Can Be Easily Highlight by The Editor.

(IDEA supports the syntax of JavaTM, JSP, XML, HTML and other files. Even a custom file, or by code editor, it can be prominent to be identified and grammar.)

Advanced Code Completion (advanced code completion function)

Basic code completion finalizes a class, method, variable name, and Java keywords, plus commonly used names for fields and variables depending on their type. It can be automatically invoked, popping up the available methods and fields list.

(Basic code completion can complete the identification of classes, methods, variable names, and Java keywords, depending on the type, you can select existing methods and domain names from the automatic pop-up list box)

The SmartType code completion filters the method and variable list to match the expected expression type. It works at the right-hand side of assignments, in variable initializers, return statements and anywhere else where IDEA can guess the expected type.

(SmartType code is completed, the method and variables in the pop-up list box are matched according to the type of the current expression, and the right side of the pop-up box is the return type of those method variables, and IDEA will also list other you may Used type)

The Class Name Code Completion Finishes a class name Anywhere in The Project Or Libraries Independently of Imports in The Current File.

(Class Name Code Finishing can help you complete the class name in any project, library, and currently independent files)

Closing Brace Auto-INSERT (auto insertion of composite statement (front and rear brackets automatically match))

START A CODE BLOCK WITH AN Opening Curly Brace Character and press Enter.The Corresponding Closing Brace IS Automatic INSERTED with The Indentation Specified in Your Preferences.

(When you type "{" to start a group of composite statements, "}" will automatically insert match, and the insert can be customized by you)

Match Brace Highlighting (highlighted parentheses)

Place the Editor caret just after a closing (or just before an opening) brace or bracket of any type. If it is correctly matched, the matching pair highlights with light blue. If there is no matching bracket, the unpaired bracket highlights as a compile (You Chan Change The Default Highlight Colors In Your Configuration). (When the cursor moves to parentheses, whether it is the left bracket or the right bracket, if it can match correctly, he will highlight it in light blue, if not Matching parentheses, there will be error prompts, of course, the highlight color can also be set)

Pasted text auto-indent (paste code automatically indent)

Paste a block of text inTo your code and idea automatically indents it to fit the new location.

(When a section of code is passed to IDEA code editing, he will automatically indent the right location)

Live Templates (Dynamic Template)

Live Templates provide a fast way to code many typical constructs. Just type the Live Template name, press Tab, and the relevant code ... simple or highly complex ... is written to your file instantly. When you insert code from a Live Template, IDEA analyzes your existing code and suggests correct values ​​for the template's variables. Now you can apply Live Templates not only at a particular caret position, but for selected blocks of code / text as well.

(The dynamic template provides a quick input of typical code, just enter the name of the dynamic template, press Tab, whether it is simple or complex code, will be completed immediately. The dynamic template will automatically analyze existing code, insert the appropriate variable name The use of dynamic templates is not only in the cursor position, but he also applies to the selected text code)

Express Code Commenting (Quick Code Note)

Use a single keystroke to quickly comment / uncomment a selected line or block with either block (/ * ... * /) or line (// ...) comments. Comments insert at the first column, or at the indentation level, depending on your preferences .

(Use a key to make a comment or anti-comment in the selected code, the insertion position of the comment can be set)

Popup parameter info (parameter pop-up prompt)

When coding a new method call, a tooltip showing the target method's signature pops up after you type the opening "(" character or invoke code completion features. The parameter highlighted in bold is the one on which the caret is currently positioned. You can control The Popup Interval or Disable The Popup Completely In Completion Setting Settings. (When you enter a new method, you will have the pop-up prompt of this method parameter after entering "(", the current parameters will be displayed in bold, you can be in Completion Controls if the settings control is pop-up, and the pop-up delay is displayed)

Code Folding (Code Fold)

Easily "fold" and "unfold" methods, Javadoc comments, or blocks of import statements, putting distracting detail out of your way. Fold / unfold a single block or everything in the file at once with a single keystroke.

(You can fold the Javadoc annotation, method body, or a series of import statements, hide their details, just click, you can open or close them)

Mouse over «Folded» Code Icons to Pop Up The Hidden Detail for Quick Examination.

(When the mouse is moved to the code, the hidden content will be temporarily displayed)

Split-Pane Editor (Double Code Editing)

Split The Editor Into Two Diff Panes To Work In Two Different Places In The Same File Simultaneously. Move The Pane Splitters To Adjust The Size of the Pain.

(Through the segment bar, you can divide the code into two parts: independent work, the drag split bar can be adjusted)

Clipboard Stacking (Super Scrapbook)

NOW Store Multiple Clipboard Entries and Access Them The Clipboard Stack.

(Have a scrapbook that can store multiple scrap contents, the number of scrapped contents can also be set)

转载请注明原文地址:https://www.9cbs.com/read-28342.html

New Post(0)