For IntelliJ IDE:
How do I go back to the code that I was reading after I clicked:
Command + Click for IntelliJ.
Same question for after I found usage and want to go back.
OS is macOS.
To go Back on Windows/Linux:
Ctrl + Alt + Left
On MacOS:
Command + [
The same is possible from the menu:
Navigate > Back
Same question for after I found usage and want to go back.
Just go back to editor from usage window:
Esc
Go back to editor and hide find window:
Shift + Esc
It works for hiding other recent window too (Project, Run ...)
Also, keymap reference is available:
Help > Keymap Reference
Related
I love intellij's file tab but I can't seem to find a way to shortcut closing a tab similar to the behavior of ctrl + w in chrome. I can't find the option in the keymap editor. Am I missing something or is this not implemented?
I found this page but it doesn't include the action name. I would use ctrl + f4 but my window manager has that reserved and I would rather change it.
Open Settings by hitting Ctrl+Alt+S
Click: Keymap
Search for: Close
Under Main menu > Window > Editor Tabs, find Close.
Right-click and click Remove Ctrl+F4.
Right click and click Add Keyboard Shortcut
Add your new custom Keyboard Shortcut.
IntelliJ will tell you if the shortcut clashes with another shortcut performing a different action.
Alternatively, open/edit your Linux Window Manager Settings and remove the Ctrl+F4 mapping to allow other programs like IntelliJ to make use of it.
For PC-based keyboards, the shortcut to close tabs is CTRL + F4,
not to be confused with ALT+F4.
Current tab can be closed with:
Ctrl + F4
Works on Intellij Ultimate 2016.3
On mac OS, Intellij 2018.3 version, 'Command + W' does close the file tab.
As we can see in the image in this discussion:
Go in Settings >> Keymap >> Main menu >> Other >> [Close Active Editor] and change to Ctrl+W.
I'm on version 2020.1 and this has changed to Ctrl+4
I have to open each intellij instance for each application. And switch between these project are not so efficient. (there's no dependency between these project, so I can not add them into one project). I just wonder is there efficient way to switch between different projects in intellij.
OSX: Press CMD + `
Windows/Linux: Press cntr + `
https://www.jetbrains.com/help/idea/creating-and-managing-projects.html#switch-projects
if you have several opened projects: https://www.jetbrains.com/help/idea/opening-multiple-projects.html
you can use:
Next Project Window: Cntrl + Alt + {
or
Previous Project Window: Cntrl + Alt + }
Edit
jebrains update their Switching Between Open Projects:
https://www.jetbrains.com/help/pycharm/switching-between-projects.html
Next Project Window: Cntrl + Alt + ]
or
Previous Project Window: Cntrl + Alt + [
Set up a keymap shortcut to "Manage Projects...".
This brings up a window that you can type into to quickly search recent projects. It includes currently open projects as well as previously closed projects.
Use search everywhere command (shift + shift) and type Open Recent - you will be able to switch to one of your recent projects.
You could also configure any shortcut you want for this action.
To create shortcut, go to Preferences->Keymap and find Main menu->File->Open Recent.
Try this https://github.com/krasa/FrameSwitcher.
Switching intelliJ windows by searching project name.
If you're a MacOS user: As well as the Command+` and Command+Shift+` keyboard shortcuts which IntelliJ offers to toggle between IntelliJ windows, the OS-level Control+↓ keyboard shortcut is an excellent way to see and navigate between windows of the current app. The screenshot below shows the view which it offers. If you turn on App Exposé in your Trackpad preferences, you can also get to this view by swiping down with three fingers.
To switch between open projects, you can use the following commands of the Window menu:
Window | Next Project Window Ctrl+Alt+]
Window | Previous Project Window Ctrl+Alt+[
When using IntelliJ IDEA and writing code, and when code you wrote has an error, the only way I know to make IDEA show you the error details is to hover the mouse cursor over the problem.
But that requires moving my hands from the keyboard to the mouse. Is there a hotkey that causes that pop-up with the error message to appear, or a way to configure such a hotkey?
On a Mac:
Cmd + F1
On Windows:
Ctrl + F1
On Linux:
Ctrl + F1
You can check for anything else in Preferences -> Keymap
On a Mac: ⌘F1
On Windows: CtrlF1
These activate the menu item “View” → “Error Description” (which only exists when there is an error):
You can configure and search for keyboard shortcuts in Preferences → Keymap:
In the year I write this, the shortcut is Ctrl + 1.
( My OS is Arch Linux )
What is the cloud9 keyboard shortcut to move between the editor tab (#1) and the terminal console (#2)?
I am aware that I can open a terminal tab and switch to it using the keyboard, but I want to see both the editor and terminal in one view.
It is ALT + S on the current version of Cloud9
To make certain keyboard shortcut work on c9.io in Chrome, which would otherwise do something else like close tab or reload page, click the menu button of Chrome > More Tools > Create Application Shortcuts....
Now the IDE is an actual program and all the default browser shortcuts are disabled. Ctrl + W (Close tab) and Ctrl + Shift + Q (Close Chrome) and F5 (Refresh) and the likes can now be used as keyboard shortcuts :)
To add on #Kronenbourg's exact answer (which IMHO should be accepted) - as of May 2015:
Shift + Esc / Esc - Goto workspace (files tree) / Exit workspace (to the last place, Editor/Terminal)
ALT + S - switch between code and terminal
In conjunction with CMD + { / CMD + }, which navigate right/left in current context (Editor, terminal) tabs, you should be able to reach anywhere with the keyboard.
Also useful in the context is CMD + O to open file.
HTH
It's Shift+ESC on open source, but unfortunately this doesn't work on c9.io.
I accidentally found out that ctrl+~ works to switch between terminal and editing window and then back. Maybe it's not the most convenient shortcut but it works.
Alt+s
This shortcut is listed in the top menu, under:
Window > Navigation
I can use F12 to jump to project tree (if it was the last tool that I used), but is there a shortcut for jumping back to editor?
Esc usually brings the focus back to the editor.
With Alt + Home you can actually put focus on selecting the file and hit enter in order to go to the editor.
Esc is not always going to put the focus on editor.
For those on Mac (you don't have a Home key), use Command + E to open the recent files then hit enter.
Pressing F4 (Jump to Source action) in a selected resource in the Project View opens the editor with focus.
Another easy way to get from Terminal to Editor (on Mac) with two keys that are close together: Press ⌘1 to go to the project tool window, then hit Esc.
You can use ctrl + tab Navigate between files opened in the editor, and tool windows.
This is definitely a workaround, but, on mac os the following keystrokes work,
[ SHIFT + CMD + A ] > type "edit" > [ ENTER ]
So, I created a Service using Automator as follows,
receives no input
active for my IDE only ( phpstorm )
runs an AppleScript ( see below )
Then I mapped the Service via "System Preferences > Keyboard > Shortcuts > Services" to
[ CTRL + OPTION + CMD + i ]
The Automator Service, contains the following AppleScript,
on run {input, parameters}
tell application "System Events"
keystroke "A" using {shift down, command down}
delay 0.2
keystroke "edit"
delay 0.2
keystroke return
end tell
return input
end run
There is no perfect solution, since Escape doesn't work if your other Tool Window is a Terminal, Windowed... as a result there is an open ticket on Jetbrains, bug tracking site see this link.
Also, if you have "Autoscroll to Source" disabled (default state in Intellij):
Escape puts cursor in file currently visible in editor (As mentioned in the other Answers)
F4 puts cursor in file currently selected in the Project view.
The most elegant way found in mac: ctrl + tab + p
ctrl + tab: open recent file, always last file opened
ctrl + p: last line in mac default keymap