![]() ⌘F12 or Ctrl+F12 – Navigate along file structure So, if the formatting in a project doesn’t correspond to the conventions you are using, select a piece of code you want to reformat according to your settings and press ⌥⌘L (macOS) or Ctrl+Alt+L (Windows/Linux). When working in a team, you usually share a unified code format. You can use this feature by putting the caret at the desired position and pressing ⌥/ (macOS) or Alt+/ (Windows/Linux). Hippie completion works in such situations. However, there may be cases when you simply want to reuse words that have been used earlier in the current file or even the project, regardless of their context. You are probably used to IntelliJ IDEA’s code completion mechanism, which offers suitable suggestions depending on the context. This means you don’t have to worry about losing any pieces of code you’ve copied recently. IntelliJ IDEA allows you to keep several recently copied items in the clipboard and paste any of them with the help of ⇧⌘V (macOS) or Shift+Ctrl+V (Windows/Linux). ⇧⌘V or Shift+Ctrl+V – Choose content to paste The IDE will then close all inactive tabs at once, and the tab you are currently working on will stay open. All you have to do is press ⌥ (macOS) or Alt (Windows/Linux) and click the “x” on the active tab. If your editor looks overloaded with open tabs, you can take care of this with just one key and a click. Underrated Shortcuts ⌥ “x” or Alt+“x” – Close all inactive tabs Check them out and give them a try! If you use any other lesser-known shortcuts, share them in the comments below. This post covers some of the underrated keyboard combinations IntelliJ IDEA supports. But believe it or not – there are a few shortcuts that perhaps not even you are aware of! We share helpful shortcuts with you quite frequently, so by now, you may very well be a shortcut expert. Shortcuts are in IntelliJ IDEA’s DNA: every possible action is at your fingertips – even those you didn’t think you needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |