Acquaintance idea integrated development environment (study notes) 1. For integrated development environment: the Eclipse, IntelliJ IDEA and so on. Where the current mainstream integrated development environment are: IntelliJ IDEA using 2. IDEA tool pop-up welcome window click on the create new project Note: a project equivalent to a workspace eclipse in IDEA among them. Create a new Empty Project to create a new empty project, select the Create project window below the Empty Project. After choosing a name to the project and the need to select the memory address. New Module1 (module) IDEA modules corresponding to the eclipse of the project. the eclipse of the organization: workspace → project organization of IDEA: project → module how the new module: file → new → Module → named the new class in the src directory Right src → new → class → name. 3. Shortcuts About IDEA tool, as well as some simple settings. Font settings file → setting → find the font → set the font style and font size. main shortcut keys psvm Enter. System.out.println (); shortcuts sout Enter. To delete a row: ctrl + y copy line: ctrl + d how to run code on the right → run or click the green arrow on the left side of the keyboard shortcuts: ctrl + shift + F10 list in the left window of how unfold? How close the left arrow close the right arrow to expand the up and down arrows to move the IDEA exit any window, you can use the esc key. Any additional / new / add shortcuts are: alt + INSERT such as: New class, new constructor, setter and getter rewrite methods. Window larger, smaller shortcut ctrl + shift + F12 Alt + left and right arrows to switch java program switching windows (open / closed) Alt + reference window parameter prompt method: Ctrl + P multiline comments: After selecting ctrl + shift + / single line comment: ctrl + / positioning method / property / variable on the need to move the mouse press ctrl required positioning method / property / variable mouse click.
1. Editorial Shortcuts Editorial Shortcut Keys psvm + Tab generating a main method sout + tab to generate the output statement Ctrl + X / Ctrl + Y Delete line Ctrl + D Copy line Ctrl + / or Ctrl + Shift + / comment tags Ctrl + Z Undo Ctrl + Shift + Z cancel Undo Ctrl + C Copy Ctrl + V Paste Ctrl + O override method Ctrl + I-implemented method Ctr + shift + U sensitive conversion Ctrl + Shift + J line integration of two rows Ctrl + Shift + space autocomplete codes Alt + Enter imported packages, automatic correction Alt + / code hints Alt + the Insert generated code (e.g. GET, SET method, constructor, etc.) the Ctrl + L format code the Alt + Ctrl + Alt + I automatic indentation Ctrl + Alt + T the catch generate the try the Ctrl + the Alt + O optimization classes and packages introduced fori for loop for generating ( 0 = I int; I <; I ++) {} ITER generate an enhanced for loop itar array for generating code blocks itit generated iterator iteration itli generate List traversal itco generation iteration Collection 2. Find, Replace shortcuts like find and replace type shortcuts introduced Ctrl + F to find in the current file Ctrl + Shift + F throughout the project or specified window find text Ctrl + N look for classes in the project Ctrl + Shift + N lookup file Ctrl + R text replace the current file Ctrl + Shift + R in a specified window replacement text Ctrl + W automatically according to the syntax check codes Ctrl + Shift + W reverse vending syntactically selected codes Ctrl + G positioned row Ctrl + Shift + Backspace jump to the previous editing Ctrl + alt + ← / → jump back and forth edited place Ctrl + Shift + Alt + N lookup variables / method Alt + F7 to find your functions or variables or class of all references to the place Alt + F3 to highlight all the text is selected, press Enter to select a case, press Esc to highlight the disappearance F4 to find the variables in the current class source Ctrl + Shift + F7 highlight all the text is selected, press Esc to highlight the disappearance double-click Shift to find anything 3. compile, run like the shortcut key to compile and run like shortcuts introduced Ctrl + F9 to compile the project Ctrl + Shift + F9 to compile the current file Shift + F10 to start normal Alt + Shift + F10 run the pop-up menu to select Shift + F9 debug mode starts Alt + Shift + F9 selecting Debug 4. shortcuts Debug Debug shortcut keys F7 in Debug mode, entered, if the current line is a breakpoint method, this method proceeds in vivo, as well as if the method body methods, is not embedded in the entering Shift + F7 intelligent into Alt + Shift + F7 into force F8 in Debug mode, step over, if the current line is a breakpoint method, this method will not enter the body Shift + F8 stepped out Alt + Shift + F8 forced to step over alt + F8 in Debug mode, check to see value Ctrl + Shift + F8 to see the breakpoint F9 in Debug mode, run the recovery program. If there is a breakpoint breakpoint code below the paper stop on the next breakpoint, Alt + F9 run to the position of the cursor Ctrl + Alt + F9 forced to run the cursor Alt + F10 breakpoint target 5. Reconstruction shortcut reconstructed shortcut keys Shift + F6 rename Ctrl + Alt + C extraction constants Ctrl + Alt + F extraction field Ctrl + Alt + M extraction method Ctrl + Alt + P parameter extraction Ctrl + Alt + V variable decimation 6. other types of shortcuts a common a common title heading Ctrl + C to copy the file name full path Ctrl + Shift + C to copy files Ctrl + E to display recently opened files Ctrl + Shift + E to display the popup list of recently modified files Ctrl + P parameter prompts method Ctrl + Q can see the current methods declared Ctrl + Alt + Space class or interface name prompt Ctrl + F12 shows the structure of the current file Ctrl + H shows the structure of FIG current class Ctrl + Q show annotated documents information double click Search Everywhere Shift pop-pop-layer, look for any of the contents of any Ctrl + [to move the cursor to the beginning of the current brace location code Ctrl +] to move the cursor to the end of the current location of braces code Ctrl + K filed version control project, the need for this project has added to version control before you can use Ctrl + T to update the version control project, the need for this project has added to version control before you can use Ctrl + Tab to switch editing window. If the handover process and press the Delete key, corresponding to the selected window is closed |
|