- Menu bar -> Help -> Tip of the Day pops up the window if you need it again
- You can work with multiple projects in one window. To do this just open another project folder in the Open File or Project window. Click OK. A new dialog box will show up in which you select "Open in current window" and "Add to currently opened projects".
- To open any class inside the editor, press Ctrl+N (Nagivate | Class) and start typing the name of the class, you'll get options in a drop down menu.
- Use the Code Completion feature by start typing for example the name of a class, select the intended class in the lookup list and press Ctrl+Space to complete the name.
- Pressing Ctrl+Space twice completes the name of any class no matter if it is imported in the current file or not.
- Find Usage is a feature which allows the programmer to find where any class, method or variable is used in a project. Press Alt+F7 to use Find Usage on marked code. To highlight usages of a variable in the current file, press Ctrl+Shift+F7.
- Navigate through highlighted usages with F3 and Shift+F3. Remove highlighting with Escape.
- Need to know about a code symbol? Mark it and press Ctrl+Q to pop up the Quick Documentation.
- Navigate to the declaration of a class, method or variable by marking code inside it and press Ctrl+B. The same feature is invoked by Ctrl+Mouse Clicking code.
- Navigate in the currently edited file with Ctrl+F12 (Navigate | File Structure). Select an element and press Enter or F4 to jump to it.
- Ever felt that you want to replace a word in a file? The feature is invoked by pressing Ctrl+F6 (Refactor | Rename) and it will replace the currently marked code. Inside the new word in the popup window.
- When using Code Completion, accepting the currently highlighted selection with Tab will, unlike using Enter for selection, overwrite the rest of the name. Use this is you don't agree with the Code Completion suggestion.
- To close a tab in the editor you can either Shift+Click the tab, or click on it with the scroll button.
- Press Alt+F1 to quickly select the currently edited class, file, method or field in any view.
- There's a speed search feature in which you just start typing and it'll start searching no matter what view you work with.
- Press Escape in a tool window to move focus to the editor.
- Press Shift+Escape to move focus to the editor and hide the current or last active tool window.
- F12 moves focus from the editor to the last focused tool window.
- Ctrl+W invokes a feature called extended selection. Select a word in your code and press Ctrl+W times to select for example methods that calls the selected code. Press Ctrl+W to extend the selection even further.
- Select a complex part of your code and press Ctrl+Alt+V (Refactor | Extract | Variable). It will invoke the Extract Variable feature which help you to simplify your code. Instead of typing multiple extensive expressions as an argument in a function, this feature will create shorter variables for the expressions to make the arguments easier to read.
- Press Ctrl+D to duplicate the currently selected block of text or the current line the marker is on.
- Move code up or down by selecting to and pressing Ctrl+Shift+Up/Down. If nothing is selected, the current selected line will be moved.
- Merge two lines and remove unnecessary spaces by pressing Ctrl+Shift+J.
- When cursor is between two parentheses when calling a method, press Ctrl+P to pop up a list of valid selections.
- Want to continue from where you last edited? Press Ctrl+Shift+Backspace (Navigate | Last Edit Location). This can be done multiple times to browse change history.
- Change history of your file is found in the menu (VCS | Local History | Show History). This feature will never delete any code.
/Ludvig
No comments:
Post a Comment