IntelliJ IDEA, Test Runner Pane, maximize output pane - intellij-idea

Is there a way to maximize the output pane of a test?
I can't believe that I have to endure the review process of the stacktrace in this narrow pane!
There is a shortcut (ctrl-shift-up) that make the pane grow a little.
Does anybody know of a shortcut or a button to maximize the pane?
Like in eclipse for the output console (ctrl-m)
Anyway, Idea is great!

It's not possible to maximize it, please vote for the corresponding feature request:
IDEA-64469 Provide a way to view test console output maximized (like double-clicking it?)
Update
It has been implemented as described in the issue:
You can maximize/restore tool window size:
With double-click on toolwindow header
With shortcut Shift+Ctrl+' (Shift+Command+' for Mac OS X)
Via "Resize" actions group (see popup menu for tool window)

On Linux and Windows:Ctrl + Shift + Quote(')
On Mac:Command + Shift + Quote(')
With double-click on toolwindow header
Via "Resize" actions group (see popup menu for tool window)
Tested on 2016.1.1(Linux) & 2018.1.1(Linux).
On my AZERTY keyboad I had to reassign the shortcut to Alt + M and Alt + W (maximize window).
It was maybe not yet implemented in 2013.

Look in Settings -> Keymap
Inside of that, look for "Maximize tool window" item.
Use the assigned shortcut or set one of your preference.
Regards

Before using the Cmd/Ctrl + Shift + Quote shortcut you have to activate the Run/Debug Command Output window, which in my keyboard is Right/Alt + 4 or , Right/Alt + 5 ...

Related

How to navigate in groups (not tabs) in tool windows

I'm trying to use Intellij Idea only with the keybord.
How can I navigate between groups/panels (don't know the exact term) within a tab of a tool window?
For example in the Debug tool window → tab debugger how to switch from the Frames panel to Variables panel using only the keybord?
Screenshot
There is a mapping on Alt + -> or Alt + <- to navigate between tabs within a tool window.
But I can't find a way to navigate within the panels of the tab.
i use linux, but maybe windows key + tabor more simple you can map the shortcut from your keybord in the windows settings

Intellij IDEA: Hotkey for "scroll from source"

I can't find a hotkey for the feature "Scroll from Source".
What is the difference between Scroll from Source and Scroll to Source as well?
In the latest IntelliJ IDEA, there is a keymap entry called "Select in Project View" with no default shortcut. Just add a shortcut key to it. No need for a plugin.
tldr;
Alt + F1, then 1
First checkout your shortcut key for the "Select In.." item in the Navigate menu.
Click in the file you're editing, hit the shortcut key for "Select in".. then press 1.
I've changed the hotkey for select in to Alt + 1 so that my key combination is the easy to remember Alt + 1, 1
There is a plugin for this now.
It's called Scroll From source:
https://plugins.jetbrains.com/plugin/7606?pr='
This is now builit in see #Dimitrov answer
https://stackoverflow.com/a/42025214/961018
There's no configurable shortcut in the Keymap settings, and it does not appear in the "Enter action" dialog, so I'm pretty sure it's not (yet) configurable, even if I agree it would be very appreciable.
You can use the navigation bar Shortcut keys as well.
On Mac
Hit ⌘ + ↑ (command and up key)
Hit ← (left arrow)
Hit ⌘ + Enter
This will take you to the folder in project view.
It's worth having a play round with the navigation bar.
IntelliJ really have this covered :)
For ubuntu i did ALT+L (cause ALT + F1 is busy), then just enter.
If you are using JetBrains Rider, then the shortcut is Locate in Solution Explorer:
As a much much much much much better alternative to the scroll from source functionality you can use the Navigation bar.
Note: double clicking on the folder in the navigation bar will scroll to that folder in the Project view, (i.e. the same functionality as scroll from source).
You can show the navigation bar in the view menu, there's also a shortcut for each OS (cmd and up arrow ⌘ + ↑ on OSX, Alt + Home on Linux and Windows)
So it looks like this...
And it allows you to browse through the folder structure containing the file in focus in the main editor.
https://www.jetbrains.com/phpstorm/help/navigation-bar.html
https://www.jetbrains.com/idea/help/navigation-bar.html
https://www.jetbrains.com/webstorm/help/navigation-bar.html
In Ubuntu 18 you can disable shortcut Alt+F1, the super key(windows key) do same thing.
At moment i disable/changed this shortcuts of ubuntu
Alt+F7 --> windows+F7
Ctrl+Alt+L --> windows+L
Alt+F1 --> windows
Another better way:
The Shortcut is called Select in Projec View
The default shortcut is
CTRL+Alt+1
or you can edit this.
Source: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206717285-Scroll-from-source-keyboard-shortcut-?flash_digest=77b77d09d61eff96f7d59697820dee45b2c2041c
UPDATE: Now you can easylly use Shift+Alt+1 in Gnome Keymap or Alt+F1 in Windows Keymap
Blockquote
If I understand correctly you don't want to toggle the option so much as trigger the file browser tool window with the selection being the currently edited file.
Just leave 'Scroll From Source' enabled and open the file browser with Command + 1 on OSX or CTRL + 1(i think) on Windows. The file browser sidebar will be selected and your selection will be highlighted.
This answer also explains the difference between Scroll To and Scroll From: How to make Scroll From Source feature always enabled?
In JetBrains Rider, this action used to be named Locate in Solution Explorer, but is now (v2019.2) named Locate/Select in Solution View and by default (at least with the built-in ReSharper keymap) bound to Alt+Shift+L.

What is the Cloud9 keyboard shortcut for the terminal?

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

keyboard shortcut to switch between project frames in Intellij IDEA

Is there a keyboard shortcut to switch between project frames in intellij?
I have two projects open and the only way I've found to select the non-active project is to drag the top window/frame out of the way and then click on it.
On osx, I use the standard keystroke (both Command+~ or Command+` seem to work) for switching windows within an application.
On windows, I use alt+tab.
Annoyingly, you can use "Cmd + `" to switch through your windows but it doesn't loop back to the first window when you reach the end. You have to use "Shift + Cmd + `" to go in the reverse direction.
for Mac OS X, try:
option + command + [
option + command + ]
If you have multiple projects just switching between them may be too tedious.
In such case it's better to open Window menu using ALT+W and choose project from list.
To make quick search working for project names you need to open Window menu as popup. To do it just assign keyboard shortcut for it:
I chose CTRL+ALT+W as my shortcut to open the following window with project quick search:
for Windows, try:
Crtl + Alt + [
Ctrl + Alt + ]
I've stumbled upon an intellij-native popup for switching projects. To find it and set a key mapping:
cmd+shift+a (if macosx; shift+shift might work cross-platform) for the find-command popup menu
type/search for the "open project windows" command
option+enter (or equiv) to assign a key mapping
This Project Windows popup lets you type to filter and select by project name.
Go to Intellij Preferences.
Under Keymap find Activate Next Window.
Right click on it and choose Add Keyboard Shortcut.
Press cmd + ` and click OK.
Click OK to close Preference window.
Map key to Activate Next Window
2013 answer for people who want an "up to date" answer:
If you maximize (full screen) all your project windows and keep them grouped together in "mission control" then I find the three finger swipe works really well to move between projects.
Ctrl + Shift + [
Ctrl + Shift + ]
Does it for me. On both Intellij IDEA and PyCharm.
On Windows the following should work:
Ctrl + tab
There is no such shortcut by default, but it should be possible to implement this feature as a plug-in.
In ubuntu 18.10, you can use the below key combination for toggling betwee two open instances -
alt + `
In ubuntu, switching between multiple windows inside an IntelliJ,
use alt + ~
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.
For Mac,
Command + Shift + [ or ]
works in full screen mode.
fast forward to 2022 and you get...
I'm working on a Mac OS X. Right click on IntelliJ dock icon shows all your open projects.
I was struggling with the same issue. This is how I dealt with it.
If you have set up your mac for expose ( by default F10 for application windows), then you could use that keyboard shortcut. This is the quickest way I know and since I usually have around 5 project windows I use this fairly frequently.
On MAC CMD + ` will work.
Ensure that you haven't maximised windows.
Have been searching solution for macOS for long time and found this great plugin finally https://github.com/krasa/FrameSwitcher.
Switching intelliJ windows by searching project name including recent opened ones.
I am just put a new update her for MAC OS on version (20220.1.4)
it has new: command + option + stands for the next and command + option + shift + stands for back
I am using Mac Big Sur 11.2.3 plus IntelliJ 2019. to switch among windows, I use the following 3 keys.
⌥ ⌘ `
If you have opened multiple projects and want to switch between them, then you can use:
command `
that is, command and tilde (you can get it just above tab button).
This is for mac os.

Locate current file in IntelliJ

How do I locate the current file in the project structure? (Similar to Visual Studio's Ctrl + Alt + L). What is the name of the operation (so I can define it in the keymap)
Alt + F1 (or Alt + Shift + 1 for linux) almost does what you want. You need to hit Enter afterwards as IDEA allows multiple "targets" for navigation (project structure, file structure etc).
(Note you can also set AutoScroll to Source and AutoScroll from source using the two "boxes with arrows" buttons above the project structure view but this can get annoying when it shoves you into the JDK source because you followed a reference to java.io.File.
The keymap defines it as Select current file or symbol in any view.
You can also click the little cross hairs button in the projects pane:
Note that the symbol won't be shown if Always Select Opened File (previously Autoscroll from Source) option is enabled.
Click the gear in the Project tool window and then Always Select Opened File (previously Autoscroll From Source)
"Select in project View"
Little to no memorization required, reusable for every action in Intellij:
Use Find Action:
Press Shift + cmd + A (Pretty sure
it's Shift + Ctrl + A for Windows
and Linux)
Type select in...
Select Select in Project View in the suggestion list
Do following will select your file automatically all time.
Right click on Project/Packages area > Autoscroll to Source.
Right click on Project/Packages area > Autoscroll from Source.
Please find image below.
I am using IntelliJ IDEA 2016.2 Ultimate.
Alt+F1, then press 1
And make it autoscrollable from source without hitting shortcuts every time How to make Scroll From Source feature always enabled?
There is no direct shortcut for such operation in IntelliJ IDEA 14 but you can install the plugin and set it the keyboard shortcut to the function that called "Scroll From Source" in keymap settings.
In addition to the other options, in at least IntelliJ IDEA 2017 Ultimate, WebStorm 2020.2, and probably a ton of other versions, you can do it in a single shortcut.
Edit preferences, search for Select in Project View, and under Keymap, view the mapped shortcut or map one of your choice.
On the Mac, Ctrl + Option + L is not already used, and is the same shortcut as Visual Studio for Windows uses natively (Ctrl + Alt + L, so that could be a good choice.
Open the project explorer ( default left side )
Click on the tiny wheel setting button
Mark Auto scroll from source option.
Boom! You are done.
If you are using Mac(OSX)
Based on the current tab, to select the file on project is : FN + OPTION + F1
Then in the popup you can Select in: Project View > Select In: Project
in PyCharm 2021 this hotkey named Select File In Project View
In Intellij Idea Community edition 2020.1 :
Right click on project header
Select 'Always Select Opened File'
In 2023 there is still no default shortcut for locating the current file in the Project view. However it is easy to set up a custom shortcut for it.
Open Settings, go to Keymap and search for "Select file in project view". It should be in the "Other" section and should have a crosshair icon. Right click on it and select "Add keyboard shortcut". I set it up to CTRL + SHIFT + L, but of course any unmapped key combination will work.
Enjoy! For me this is a very often used feature and having a shortcut for it is a significant productivity boost.