본문 바로가기

개발171

[Tip of the Day] IntelliJ : Create code constructs with completion Create code constructs with completion You can create code constructs using statement completion. Start typing a method declaration, a method call or a statement such as if , do -while , try -catch , or return . Press Ctrl Shift Enter to complete the statement into a syntactically correct construct. 2023. 10. 4.
[Tip of the Day] IntelliJ : Live templates Live templates Use live templates to insert frequent code constructs. For example, type psvm and press Tab to insert the main() method declaration template, then type sout to insert a print statement. 2023. 9. 27.
[Tip of the Day] IntelliJ : Postfix code completion Postfix code completion Postfix code completion is applied from right to left to avoid backward caret jumps when coding. Type a dot . after the code fragment that you want to change and select the desired option. To see the suggestion list with postfix templates, you can also press Ctrl J . 2023. 9. 26.
[Tip of the Day] IntelliJ : Quick Definition Quick Definition Press Ctrl Shift I (View | Quick Definition) to preview the definition or content of the symbol at the caret, without opening it in a separate editor tab. 2023. 9. 25.
[Tip of the Day] IntelliJ : Switch scheme Switch scheme You can apply a different code style, coloring scheme, or keymap with a single keystroke right from the editor. Press Ctrl Back Quote (View | Quick Switch Scheme) to specify the scheme you want to switch to. 2023. 9. 22.
[Tip of the Day] IntelliJ : View Git blame annotations View Git blame annotations Git annotations show detailed information on the origin of each code line (right-click the gutter and select Annotate with Git Blame). Right-click an annotation and choose Show Diff to review the differences between the current and the previous version of the file. 2023. 9. 21.
[Tip of the Day] IntelliJ : Duplicate a code block or a line Duplicate a code block or a line Press Ctrl D in the editor to duplicate the selected code block, or the current line when no block is selected. 2023. 9. 20.
[Tip of the Day] IntelliJ : Code completion Code completion When using code completion, you can accept the currently highlighted selection in the popup list by pressing Tab . Unlike accepting with Enter , the selected name will overwrite the rest of the name to the right of the caret. This can be especially useful for replacing one method or variable name with another. 2023. 9. 19.
[Tip of the Day] IntelliJ : Local History Local History Local History lets you track all changes to files, classes, methods, or any code fragments and roll back to any stable point if necessary. To view local history, from the main menu, select File | Current File | Show History. 2023. 9. 1.
[Tip of the Day] IntelliJ : View recent files View recent files Press Ctrl E (View | Recent Files) to view the list of recently opened files. 2023. 8. 25.
[Tip of the Day] IntelliJ : Version Control Version Control IntelliJ IDEA provides out-of-the-box integration with the following version control systems: Git, Mercurial, Subversion, and Perforce. Version your application to collaborate on it, as well as to eliminate the risks of storing all of your codebase locally. Press Alt 9 to view the history of the changes in the project or press Ctrl K to send your local changes to the repository. 2023. 8. 24.
[Tip of the Day] IntelliJ : Extract Variable refactoring Extract Variable refactoring The Extract Variable refactoring wraps a selected expression into a variable. It adds a new variable declaration and uses the expression as an initializer. Select an expression and press Ctrl Alt V (Refactor | Extract/Introduce | Variable). 2023. 8. 16.