JavaRush /Java Blog /Random EN /Let's get to know IntelliJ IDEA
Adelaida
Level 34

Let's get to know IntelliJ IDEA

Published in the Random EN group
Dear Javarashites! On the Internet I came across a rather useful article about some useful functionality of IntelliJ IDEA ( original article here ). On my own behalf, I am posting a translation of certain system capabilities described by the author of the article that may be useful for students. The translation turned out to be free, because... I tried to show the most important things and briefly. *** Additional information Additional information about the symbol at the cursor location, for example, about the source or type of object, will be displayed using the combination Ctrl+Q (Ctrl+J for OS X). Removing highlighting of an element used by the cursor Settings → Editor → General → Highlight on Caret Movement → Highlight usages of element at caret Camel's Hump By default, when selecting a word (1 double click on a word), the system selects the entire word without taking into account capital letters. If you need to select the constituent words in variables, for example, in the word getAmount, select Amount when you double-click, then check the box in Settings → Editor → General → Smart Keys → Use “CamelHumps” words. Name refactoring Change the name of a variable/method/class simultaneously in all places in the code using the Shift + F6 combination on the name. Exit editing mode – Esc. Removing the light bulb If you are tired of the pop-up yellow light bulb near the cursor, do the following: 1\ Find the IDEA configuration file approximately along this path: *.IdeaIC15\config\options\ File name editor.xml . (if you can’t find it yourself, try using Windows search or a file manager). 2\ In the editor.xml file , add a line Let's get to know IntelliJ IDEA - 1 (!) in the middle of the code, be careful with the quotes - make sure they are the same as those already in the file. 3\ Restart the program and enjoy the absence of the annoying light bulb. Quickly closing unused editing tabs If you need to close all open tabs except the current one, then hold down Alt to close the current tab. Opening a file (class) in a separate window Shift+Enter on the file in the Projects list. Adding Stop and Resume buttons to the toolbar Select the Navigation Bar Toolbar section in the settings: Settings → Appearance & Behavior → Menus and Toolbars . Next, use the buttons on the right to add buttons to the menu sections you need. Pasting from copy history History is available using the combination Ctrl+Shift+V (Cmd+Shift+V for OS X). Multiple alternate selection If you need to simultaneously select several identical words: 1\ Either select the word or simply place the cursor on it. 2\ By pressing Alt+J each time (Ctrl+G for OS X), the next matching word in the text will be highlighted. Regular expressions IDEA provides a powerful built-in tool for working with expressions: placing the cursor on a regular expression in the code, press Alt+Enter , and then select Check Regex and test. It is also worth knowing that the search menu ( Ctrl + F ) also allows you to work through regular expressions (search, replace). And further. A quick menu for moving from code to various Actions – Alt+F1 . For example, by selecting Show in Explorer , you will immediately go to viewing the folder with your project files ***
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION