My Favorite Shortcuts for JetBrains' IDEs
41–50 of 71 posts
Re: My Favorite Shortcuts for JetBrains' IDEs
#42A couple of "problems" I've had with Jetbrains' (more specifically IntelliJ IDEA's) shortcuts are: - Not everybody uses a "standard" set of shortcuts (understandable); so whenever I need to do something on another's system, unless they're on "IntelliJ IDEA Classic" keymap, I'm clueless for a while. - Not wanting to re-learn the "default" (shipped with) "macOS" keymap in case they change it again because of clashes wi…
Re: My Favorite Shortcuts for JetBrains' IDEs
#43Multi-cursor select is taken care of by vim's visual block. Basic editing/macros/navigation within a single file also done with vim.
For more IDE/multi-file specific tasks I use IntelliJ's shortcuts:
* cmd+shift+f for global search
* 2xshift for symbol search
* cmd+b to jump to method declaration
* cmd+shift+left/right is also useful to jump to previously navigated cursors
refactoring:
* cmd+alt+v/c/m for extracting variable/constants/methods (good for refactoring after prototyping)
* shift+f6 for renaming variables
* alt+enter for suggestions
EDIT: formatting
Re: My Favorite Shortcuts for JetBrains' IDEs
#44I have tried VS Code and the minute I couldn't ctrl + click navigate the code or get contextual ctrl + space bar method or input parameter suggestions I abandoned it.
Re: My Favorite Shortcuts for JetBrains' IDEs
#45Ctrl-alt-L (cmd-alt-L) is my all-time favorite. It reformats the code consistently. It's the first thing I do when I start work on a new codebase, and the last thing I do before a commit. No need for endless discussions on which style is best, as the IDE allows you to set the preferences on a per-project basis. It can also read editor config dotfiles so you can use code formatting consistently throughout a team.
A potential next step if it fits your workflow is to create a macro triggered by save. I have one that optimizes imports, reformats code and do silent code cleanup.
Re: My Favorite Shortcuts for JetBrains' IDEs
#46Ctrl-alt-L (cmd-alt-L) is my all-time favorite. It reformats the code consistently. It's the first thing I do when I start work on a new codebase, and the last thing I do before a commit. No need for endless discussions on which style is best, as the IDE allows you to set the preferences on a per-project basis. It can also read editor config dotfiles so you can use code formatting consistently throughout a team.
Re: My Favorite Shortcuts for JetBrains' IDEs
#47One of my favorites, which I didn't think to look for for years, is 'Ctrl + Shift + Enter'. This completes your statement for you. Very convenient and lots of wasted punctuation characters skipped.
Re: My Favorite Shortcuts for JetBrains' IDEs
#48You can add a parameter and specify a default value that will be added to every call site. You can also reorder parameters or delete one and all the call sites will be updated.
Re: My Favorite Shortcuts for JetBrains' IDEs
#49A couple of "problems" I've had with Jetbrains' (more specifically IntelliJ IDEA's) shortcuts are: - Not everybody uses a "standard" set of shortcuts (understandable); so whenever I need to do something on another's system, unless they're on "IntelliJ IDEA Classic" keymap, I'm clueless for a while. - Not wanting to re-learn the "default" (shipped with) "macOS" keymap in case they change it again because of clashes wi…
Re: My Favorite Shortcuts for JetBrains' IDEs
#50While we talk about JetBrains, I think they really should push some priority on their remote development support. Take the VS Code Remote SSH extension as a good example of how it could work, which is extremely seamlessly, and it just works. E.g. even the embedded terminal provides a shell on the remote host, and if you e.g. open a file in there via `code somefile.txt`, it will open in your VS Code. It's basically th…