My question is the opposite of this one and this other one where they asked about restoring old behavior for the commit window and local changes.
Intellij 2020+ added a commit tab on the upper left of the IDE. Don't know what I did to make it disappear, but how do I get it back?
Two settings control the commit tab: one for its interface and one for its window. You may need to perform either or both steps depending on the state of your intellij.
Windows
Interface: Settings | Version Control | Commit, then enable Use non-modal commit interface
Window: go to Advanced Settings then Enable Commit tool window
Mac
Interface: Preferences (⌘+,) | Version Control | Commit, then enable Use non-modal commit interface
Window: go to View | Tool Windows | Commit [credit #Timofey]
For quick access to almost anything in intellij (settings, code, VCS, etc), press Shift twice to open the search anywhere window. Copy/paste above text to get directly to both settings. [credit #Marcelo]
On Mac enable version control -> commit -> Use non-modal commit Interface
I solved the problem by pressing this button
The button is located in the corner of the IDE
Related
I was saving a file when i accidentally moved the commit button and now it is outside the sidebar.
Is there a way to put it back in or reset the position of all the buttons?Screenshot
I didn't quite understand what you mean by "moved the commit button and now it is outside the sidebar", but I took a look at your screenshot.
Assuming that you changed the Commit tool back to its old modal interface, you could easily revert that:
Go into Settings (CTRL+ALT+S for Windows)
Navigate to Version Control > Commit
Enable the option Use non-modal commit interface
With that option enabled, your commit tools should appear as an item in your left sidebar.
I have commit toolbar (⌘+0 for mac) with a list of changed files and i want to see the diff (⌘D). Currently diff is displayed in editor tab or i can switch it to show in a separate window, no more choice.
But I want to show it next to changelist at the bottom instead of text area with Commit Message and commit button. I know it's possible, but cannot find it anywhere. How can I put it there?
IntelliJ IDEA 2022.1.2 (Ultimate Edition)
The reason is that Local Changes have been moved to a separate Commit tool window. To return it back you can change this in your
Settings -> Version Control -> Commit -> Use non-modal commit interface.
This is should be on Git toolbar (⌘+9), not Commit toolbar (⌘+0)
See more on corresponding thread at intellij-support.jetbrains Version control local changes tab missing in 2020.1
I sometimes want to see the diff of what has changed only per line, but I find it uncomfortable to always move your hand to the mouse and click on the gutter marker. Is there a way to assign a shortcut to open that little diff window (as seen in the image)? I couldn't find an IntelliJ action that opens it.
That action is called Change Under Caret.
By default, no shortcut is assigned to it. You can find it with Find Action (Ctrl+Shift+A | ⇧⌘A).
You can also assign a shortcut to it right in this popup with Alt+Enter | ⌥⏎.
Other useful shortcuts:
Next Change: Ctrl+Alt+Shift+Down | ⌃⌥⇧↓
Previous Change: Ctrl+Alt+Shift+Up | ⌃⌥⇧↑
Rollback Lines: Ctrl+Alt+Z | ⌥⌘Z
Help documentation:
Review changes - Track changes to a file in the editor
Source code navigation - Navigate between changes
Undo changes in Git repository - Revert uncommitted changes
Use the keyboard shortcuts for Navigate:Navigate in File:Next Change/Previous Change
To make it even easier, modify the shortcut for that command to your liking in Preferences:Keymap.
Usually, I will want to display the code usage like class hierarchy and etc. And it will override the Run view. But afterwards, I want to get back to Run view to check logs. Is there any quick way to do that ? Now I have to close class hierarchy view and then open Run view which is time consuming
Most toolwindows in IntelliJ IDEA have shortcuts that can be used for activating them. You can see the shortcuts if you open the View | Tool Windows submenu of the main menu.
The default shortcut for the Run toolwindow is Alt-4 in the default keymap or Cmd-4 in the Mac OS X 10.5+ keymap.
This should be obvious, but I can't see how to do it. Just want the project browser to stay in sync with the current file I'm editing.
I'm using IdeaVIM plugin in case that's causing any issues, though I think it's just default value not to sync.
Project view has an option to Autoscroll from Source under the Gear icon. If you prefer manual sync, use Navigate | Select In... menu or the corresponding keyboard shortcut.
The manual sync can be found in Navigate | Select In... The keyboard shortcut would be ALT-F1 1 ESC (the '1' selects the project windows, the ESC goes back to the editor window).