"Original" Let the code fly--IDEA13 the most practical functions, comprehensively improve the development efficiency (Desktop Java Project Development Combat) Continuous update

Source: Internet
Author: User
Tags delete key perforce

Directory

Objective

One, text editing

1. Comment Anti-annotation

2. Automatic typesetting, full item level of text Search

3. tab shortcut input--main method, System.out.println ("")

4. The input cursor moves quickly

Second, class related

1. Track where a class is used

2. Quick Insert Constructor,getset method

3. Select the currently open file in the left view of the project file

4. Quickly switch between recently edited files

Third, source code control

1. Favorites Favorite manage a series of related code

2. Multi-Document split screen

3. Integrated Vcs-perforce

Iv. Advanced Debug Debugging

1. Observe the value of a variable in the process of debugging the shortcut keys in this article are all under idea13u and are based on Eclipse-style shortcuts.

To set the shortcut key steps for Eclipse:

Menu bar-file-settings-pop-up window to the left of the list to find Keymap, the right drop-down menu to select Eclipse, click OK
one, text editing

1.

Ctrl +/Select a row, comment on the row, and then press the uncomment (reverse annotation)

Ctrl + Shift +/Check the code block for comments, and then press the uncomment again (reverse annotation)

2.

The practical are:

A. Ctrl + Shift + FCTRL-A When all the code is selected, automatic typesetting

B. Ctrl+h full project level text Search

3. tab Shortcut input

Press the TAB key after A.PSVM to enter public static void main (string[] args) {}

B.sout After the TAB key input System.out.println ("");

4. Fast cursor Movement

A. Shift + Enter Inserts a new row at the line below the current cursor and moves the cursor to a new line

B. ALT + Direction key top/Bottom Move cursor line up/down line

C. Ctrl + Shift + Direction key up/down cursor toggle between methods

second, class related

1. Track where a class is used to the right key class name, right-click menu to choose Find Usage, in the Idea window, listed in the project where the class appears in all locations.

Ctrl + Shift + T quickly find a class by class name and open the class source code in the current window

2. Quick Insert, Support Constructor,getset method (need to establish class member first) Alt+insert (delete key above)

3. In the left of the project file view, select the currently open file Alt+f1 return

4. Quickly switch between recently edited files ALT + LEFT ARROW key/right direction key Three, source code control 1. Favorites Favorite manage a series of related code


As shown in the figure, just like the browser favorites, click Add to Favortie can be collected. Want to see favorites, Alt-2 Pull out favorite small window, can easily add and delete favorites get code files. This is useful when I modify bugs in my project, because there are thousands of classes in the project, and it's easy to focus on the coupling bugs by putting related classes in the Favorites folder.

2. Multi-file split-screen open multiple files, the right key in the main window similar to the same page tags in the source code file tags, in the pop-up menu to choose Vertical Split.

3. Integrated Vcs-perforce

3.1 Connecting the VCS server

3.2 Annotation Feature: View author and date for each line of code

Two ways:

(i) left-click the source code file anywhere, click the main Window menu bar of the VCS-> Perforce (under the local History)-> Annotation

(ii) Right-click on any line of source code, find Perforce in the right-click menu (under local History)-> Annotation Four, advanced Debug Debug 1. Observe the value of a variable throughout the debugging In IDEA13 debug mode, there is a watches area in the Debug window area that you can use to observe the value of a variable in each step. Right-click a variable name in the source code and select Add to Watches in the right-click menu.

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.