Intellij Idea Usage Summary

Source: Internet
Author: User

Intellij Idea Usage Summary (RPM)

Original http://zhaohe162.blog.163.com/blog/static/38216797201271044529756/

1. Idea Memory Optimization
First look at the configuration of your machine itself and configure it.
\intellij Idea 8\bin\idea.exe.vmoptions
-----------------------------------------
-xms64m
-xmx256m
-xx:maxpermsize=92m
-ea
-server
-dsun.awt.keepworkingsetonminimize=true



Query shortcut keys
CTRL + N Find class
Ctrl+shift+n Finding files
Ctrl+shift+alt+n find a method or variable in a class
Cirl+b finding the source of the variable
Ctrl+alt+b Find all the subcategories
Ctrl+shift+b the class of finding variables
Ctrl+g Locating rows
Ctrl+f finding text in the current window
Ctrl+shift+f finding text in a specified window
Ctrl+r replacing text in the current window
Ctrl+shift+r replacing text in a specified window
Alt+shift+c Finding the modified file
Ctrl+e recently opened files
F3 down find where the keyword appears
Shift+f3 up a keyword where it appears
F4 finding the source of a variable
Ctrl+alt+f7 selected characters find where the project appears
Ctrl+shift+o Popup Display Find content

SVN Management
Add SVN library to Idea SETTING, VERSION CONTROL, VCS = svbversion

Automatic code
ALT + ENTER import package, auto fix
Ctrl+alt+l Formatting Code
Ctrl+alt+i Auto Indent
Ctrl+alt+o Optimizing imported classes and Packages
Alt+insert generate code (such as Get,set method, constructor, etc.)
Ctrl+e or Alt+shift+c recently changed code
Ctrl+shift+space Auto-Complete code
CTRL + Space Code hints
Ctrl+alt+space class name or interface name hint
Ctrl+p Method Parameter Hints
CTRL+J Automatic Code
Ctrl+alt+t put the selected code in try{} if{} else{}

Copy Shortcut
F5 Copy File shortcuts
Ctrl+d Copying rows
Ctrl+x Cut, Delete row
Ctrl+shift+v can copy multiple text

Highlight
Ctrl+f selected text, highlighting jumps up or down to the next or previous
F2 or SHIFT+F2 highlighting error or warning quick location
Ctrl+shift+f7 highlighting multiple keywords.

Other Shortcuts
Cirl+u Case Switching
CTRL + Z backwards
Ctrl+shift+z forward
CTRL+ALT+F12 Explorer open Folder
Alt+f1 find the directory where the files are located
Shift+alt+insert Vertical Edit mode
ctrl+/Notes//
ctrl+shift+/Comment/*...*/
Ctrl+w selected code, continuous press will have other effects
Ctrl+b quickly open the class or method at the cursor
alt+←/→ Switch Code View
ctrl+alt←/→ return to last edited position
Alt+↑/↓ fast positioning between methods
Shift+f6 Refactoring-Renaming
CTRL+H Display class structure diagram
Ctrl+q displaying comment documents
Alt+1 quickly open or hide the engineering panel
The Ctrl+shift+up/down code moves up/down.
Ctrl+up/down cursor jumps to the first or last line
ESC cursor returns to edit box
Shift+esc the cursor back to the edit box, close the useless window
F1 help don't press, very card!
Ctrl+f4, it's very important to work.

Important Settings

A modules method is not compiled, but there is still a display on the view
SETTINGS, COMPILER, excludes,

does not compile a modules and does not appear on the view
MODULES SETTINGS--(Choose your module)--excluded, SOURCES---All Projects folder

IDEA encoding Set 3 steps
SETTINGS, file encodings, file-, IDE ENCODING
DEFAULT ENCODING for PROPERTIES FILES, SETTINGS, file encodings
ADDITIONAL COMMAND line PARAMETERS, JAVA COMPILER, COMPILER, SETTINGS, FILE--

Add parameter-encoding UTF-8 compile groovy file if not added, STRING S = "Chinese"; Such groovy files are not compiled over.

Add other types of files in the compilation such as *. TXT *. Ini
RESOURCE PATTERNS, SETTINGS, FILE--

Change edit Text font size
SETTINGS, EDITOR COLORS & FONTS, FONT---SIZE

Modify smart Prompt shortcut keys
SETTINGS, KEYMAP, MAIN MENU, code, complete code-and BASIC

Show file Filtering
SETTINGS, file TYPES, file--, IGNORE FILES ...
The bottom is my filter type, case-sensitive
CVS; SCCS; Rcs;rcs;. Ds_store;. SVN;. PYc;. Pyo;*.pyc;*.pyo;. GIT;*.HPROF;_SVN;. SBAs;. IJI.*;VSSVER.SCC;VSSVER2.SCC;. *;*.iml;*.ipr;*.iws;*.ids

Quick positioning in the Project window, editing a file in a window
In the edited selected file, press ALT+F1, and then select Project VIEW

------------------------------------------------------------------------------------------------------------

2. Optimized file saving and project loading

Cancel "Synchronize file on Frame activation" (Sync files function, as appropriate, can not cancel)

Cancel selection of "Save files on Framedeactivation"
At the same time we select "Save files automatically" and set it to 30 seconds, so idea can still automatically keep the file, so at each switch, you need to press Ctrl+s to save the file

How to make IntelliJ idea move without opening the project file: Settings->general remove reopen last project on startup

3. Mark the edited file with *

Editor–> Editor Tabs
—————————————–
In idea, you need to make the following settings so that the modified files will be marked with an * number, and you can save the relevant files in time. "Mark modifyied tabs with asterisk"


4. Display Line Numbers

How to display line numbers: Settings->editor->appearance tab items, tick show lines numbers


5. Customizing keyboard shortcuts

If the default code hints and complement shortcut keys conflict with IME, how to resolve: Settings->keymap


6. How to make the cursor non-arbitrary positioning

Settings->editor remove allow placement of the caret after end of the line.



7. Chinese garbled problem

settings-> File encondings Select IDE encoding for GBK.

When you include a Chinese file name or a folder, will it appear?? Garbled, the workaround is as follows:

File menu->settings->colors & Fonts->editor font= song body, size=12, line spacing =1.0

Settings->appearance Check override default fonts by (not recommended), set Name:nsimsun,size:12

--------------------------------------------------------------------------------------------------------------- ---------------------------------

General
-----------------------------------------
CancelSynchronize file on frame activationandSave files onframedeactivation"The Choice
At the same time we choose "Save files automaticallyand set it to 30 seconds so that idea can still keep the file automatically, so you need to press it every time you switchCtrl+sSave the file.

How to make IntelliJ idea move without opening the project file: Settings->general remove reopen last project on startup

Editor--editor Tabs
-----------------------------------------
In idea, you need to make the following settings so that the modified files will be marked with an * number, and you can save the relevant files in time.
"Mark modifyied tabs with asterisk"

How to display line numbers: Settings->editor->appearance tab items, tick show lines numbers
Default code hints and complement shortcut keys conflict with IME, how to resolve: Settings->keymap
How to make the cursor non-arbitrary: settings->editor Remove allow placement of the caret after end of the line

-----------------------------------------
IntelliJ idea does not support hot publishing, just because we're going to restart the container for a page change ., it is a waste of time, but also very troublesome.we solve this problem by changing the directory.。 Right-click on "AJAX" and select "Module Settings"



Here you will find a Web Facet exploede directory, and then we change this directory,Point to the currentthe Web and node of the project can be


*: note Exclude from module content hook removed, otherwise there will be webroot disappeared phenomenon

then we start the container, casually edit the page, and then click Refresh, find the page can be displayed immediately

Intellij Idea Usage Summary

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.