How / can I display a console window in Intellij IDEA? - intellij-idea

Is it possible to have a console window / command-line interface as part of the Intellij IDEA UI? I'd rather go command-line for certain actions, like working with GIT or kicking off build-processes, but at the moment that means keeping a separate console window open and alt-tabbing.
Is there some form of integrated console? And even better than that, can it automatically point at my project root by default?

IntelliJ IDEA 14 & 15 & 2017:
View > Tool Windows > Terminal
or
Alt + F12

In IntelliJ IDEA 2016.1.1:
View->Tool Windows->Debug (Alt+5)
on top right of Debug Window, click "Restore Console View" which is only show a icon like below:

More IntelliJ 13+ Shortcuts for Terminal
Mac OS X:
alt ⌥F12
cmd ⌘shift ⇧A then type Terminal then hit Enter
shift ⇧shift ⇧shift ⇧shift ⇧ then type Terminal then hit Enter
Windows:
altF12 press Enter
ctrlshift ⇧A start typing Terminal then hit Enter
shift ⇧shift ⇧ then type Terminal then hit Enter

View>Tool Windows>Run
It will show you the console

UPDATE: Console/Terminal feature was implemented in IDEA 13, PyCharm 3, RubyMine 6, WebStorm/PhpStorm 7.
There is a related feature request, please vote. Setting up an external tool to run a terminal can be used as a workaround.

Hover to the sidebar and select the "Restore visual elements of debugger..."

Press the left corner button
Choose debug
Click console

I use Shift + F12 to show the Console again (or Window > Restore Default Layout).
To enable that, I have previously saved the layout WITH the console open as default (Window > Store Current Layout as Default).

IntelliJ IDEA 2018.3.6
Using macOS Mojave Version 10.14.4 and pressing ⌥F12(Alt+F12) will open Sound preferences.
A solution without changing the current keymap is to use the command above with the key fn.
fn ⌥ F12(fn+Alt+F12) will open the Terminal. And you can use ShiftEsc to close it.

On IntelliJ IDEA 2020.2.1
Click on the tab that you want to open as window mode.
Right-click on the tab name and select View mode > Window

Related

IntelliJ IDEA terminal exiting process command (control + c) doesn't work

When working with the built in terminal in IntelliJ IDEA 2016.2.3 on OSX El Capitan the process exiting command (control-c) doesn't work. It only writes c in the console and nothing happens.
Control+C and then ENTER works in 2018.3 (in Windows).
According to your settings it should be Meta + C. Normally it is the same key combination used to 'copy' purpose.
Anyway you can check and use as follows,
Go to Settings -> Keymap
On the top-right corner type 'copy' and press Enter.
The first key pair (here Meta + C ) should be the one you needed.
You can also change the keymap you are using from the 'keymap' drop down menu appearing here, and switch to a different one, if you are not comfortable with your settings. 'Mac OS X 10.5 + would be a good one for you.
Problem solved automatically with installing a newer version of IntelliJ IDEA.
You can close the terminal session by clicking the red X on the left of the the terminal tool window, and this should also kill any processes created by the terminal. If you want to run another command, just open the terminal back up.
Keymapping works if one got a few dime of time in their hands. For me, just pressing "q" and hitting enter comes out of existing command in the terminal.
Note: you wont see anything that you may type, so just go with the flow!!!
For me is ctrl+F2 to terminate the process.
For me it was ctrl shift w. But it closes terminal window.
Just right click to see context menu, you'll see.

Keyboard Shortcut to go full screen in Webstorm/IntelliJ Terminal tool window from terminal?

I googled but have not found any solving documentation/thread regarding this:
Is there a way to set keyboard shortcut to go full screen in Webstorm Terminal tool window from Terminal window?
I know shortcut shift+Command+' but that doesn't work for me inside terminal. I know by double clicking it you can toggle it to full screen but wondering that is it possible to set keyboard shortcut to do it as I do this operation often.
Try the "Maximize tool window" command in the menu - Window->Active Tool Window->Maximize tool window
Or from terminal tool menu - Resize-> Maximize tool window
Warning! The following shortcut only works if "Override IDE shortcuts" option is disabled
To map a shortcut to this, open the Preferences dialog and type "Maximize tool window" to search the settings. It should find a match in the keymap section, and you can then use it to assign a shortcut.
It will warn you if you already have something assigned to your choice.
Warning! The following option will cause some problems in Terminal, for example, editing in vim (Esc key) etc.
Also, you can to checkout the "Override IDE shortcuts" setting in the Terminal section of the Preferences. This is enabled by default - I turn it off and find it resolves a lot of niggles I have with using the terminal. The shortcut above only works if it's disabled.
In Mac cmd+shift+fn+12 will do the trick
I mostly like zen mode - cmd(ctrl)+K,Z
enter image description here
Double press 'escape' from anywhere will bring you back to editor tab.

Exitting CodeBlocks full screen mode

How can I exit fullscreen mode in Code::Blocks editor.
I was unable to find keyboard shortcut (using Google and searching in documentation).
I'm running Codeblocks on Ubuntu inside Virtual Box.
Aha! Shift+F11 does not work on some versions of Ubuntu. Use Alt+V to bring up the view menu, use the down arrow to move down to the Full Screen option and press the space bar.
Try shift+F11. It works for me.
Go to search-bar on start menu or run menu(press win key+ r) in Windows 7
Then type "regedit" without quotes, it will open registry editor.
Then click on Console folder, then look for where Program Files_CodeBlocks_cb_console_runner.exe is written.
Then on the right side box you'll see various icon names. > select the one that reads Full Screen > delete it.
Now you console output window will be changed to normal mode.
Run you program etc again to confirm.
Alt+M will do it. I have tested it.

IntelliJ shortcut to show a popup of methods in a class that can be searched

I'm switching over from Eclipse to IntelliJ. In Eclipse, Ctrl+O in the editor, shows a hover popup that allows to search for a method in the class you're editing.
What is the equivalent shortcut for that in IntelliJ?
Use Navigate (View in older versions) | File Structure Popup (Ctrl+F12 on Windows,
⌘+F12 on OS X). Start typing method/symbol name to either narrow down the list or highlight the desired element. Press Enter to navigate to the selected element.
I prefer to use the Structure view. To open it, use the menu: View/Tools Window/Structure.
The hotkey on Windows is Alt+7,
⌘+7 on OS X
Do Cmd+F12+Fn Key on mac in IntelliJ if clicking Cmd+F12 starts.
On linux distributions (#least on Debian with plasma) the default shortcut is
Ctrl + 0
If you are running on Linux (I tested in Ubuntu 10.04), the shortcut is Ctrl + F12 (same of Windows)
command+fn+F12 is correct.
Lacking of button fn the F12 is used adjust the volume.
By default, most of distribution uses Ctrl+F12.
Some OS distribution (in my case Xubuntu) which uses Xcfe, overrides Ctrl+F12 to "Workspace 12" switch.
You can type "this." and wait a second, a popup with methods and properties will display.
Not a shortcut, but it works for me.
PS: if you are in a static method, type the class name.
For Mac Users if command + fn + f12 or command + f12 is not working, then your key map is not selected as "Mac Os X". To select key map follow the below steps.
Android Studio -> Preferences -> Keymap -> From the drop down Select "Mac OS X" -> Click Apply -> OK.
Ashkan Kh. Nazary you can use
Ctrl+N
or
Ctrl+Shift+N
source IntelliJIDEA_ReferenceCard

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.