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

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.

Related

Intellij Idea: what is shortcut for main window

Imaging the situation when you writing some code and then you wish to continue your work in the terminal. Alt + F12 and you are in the terminal. After 1 sec you wish to continue to work under your code. So you need some shortcut that allows you return back to the code window (I would like to avoid using the mouse). What should I press for this case?
Terminal has an option to override IDE shortcuts which is enabled by default, this is done so that you can use common shortcuts in the terminal applications.
If you disable this option, you can use Esc to get the focus back to the editor, otherwise it will be intercepted and can be used in the apps running in the terminal tool window.
Shift+Esc will hide the Terminal tool window and move the focus back to the editor no matter if the option mentioned above is enabled or not.
For all the other cases Esc will work fine as mentioned in my other answer.

Can't type in IntelliJ

I'm using IntelliJ IDEA on my Mac to work on a project, and I keep on coming across an issue where I can't type. Occasionally when I switch to another application and then switch back to IntelliJ I can't type anything, and the cursor doesn't appear on text when I click on things. Does anyone know what causes this? After 1-2 minutes it goes back to normal, but it's started happening more frequently and it's pretty frustrating to not be able to type and have no way to fix it.
This is the version of IntelliJ I'm using:
IntelliJ IDEA 2016.1.3
Build #IC-145.1617, built on June 3, 2016
JRE: 1.8.0_76-release-b198 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Turn off Vim Emulator from Tools in the IntelliJ, like this picture:
I am encountering this issue aswell, ...
MAC os Mojave 10.14.2, Inteliij Community 2018.3.5
Aside from restarting / clearing caches, I found that cmd + leftShift + F still opens the search window, and all my keystrokes appeared in the searchbox!
After the searchshortcut, I was able to close the searchbox and work again!
The answer here helped me https://intellij-support.jetbrains.com/hc/en-us/community/posts/206152119-Can-t-type-in-editor-window
Quoting the author of the answer:
I had the same problem. It goes away after I click the icon at top of
the scroll bar. it happens frequently on windows 7/10, and
occasionally on mac. my colleagues said they have experienced it too
Have the same issue occasionally, can't type in any Intellij windows. My temporary/quick fix, is to:
Close any terminal windows in intellij
Use cmd+shift+f to pull up the search window.
Seems to fix it, for a while.
Closed IDEA, all IDEA projects! Even though in other IDEA windows I could type.
Removed .idea folder in the project I could not edit.
Restarted IDEA.
Then I was able to type!
Maybe you entered Vim emulator as said. Maybe only by mistake :).
Control-V is a frequently used shortcut. And Control-Alt_V is the shortcut to enable Vim mode so you can see the problem...
How to know in five seconds: type a ":" (colon) and if the cursor jump to end of the screen, that is vim. If so enter q to quit and then Control-Alt-V (on windows) to go back to IDEA standard mode.
vi is a powerful text editor since ever. But only if you pretend and know how to use it... There is even a warning on the IDEA install saying like "do not install unless you are familiar with Vim" in yellow bold text, iirc.
[Follows historic data, that you may find boring off-topic or interesting]
Today's editors opens the code in edit mode right away so you can start typing over existing code. Vim by the other hand opens the code in, let us say, browsing mode: there is a set of navigation keys to browse the code. Everything you type is supposed to be a command. When you want to edit you enter INSERT mode and then you can type new text. Only then.
Just for more historic data: vi navigation mode is great for studying code you do not know, using IDEA, since it does not change the text unless you tell it to, and some vi commands are clever.
One example:
"/" (forward slash) is one search command, and "z" is a smart scroll command so that:
/setCellFactory will search for the next match of "setCellFactory" and put the cursor there
Then if you type "z" the code will be positioned so that line is the first on screen. And if you type "." the line will be at the middle. And if you type "-" that line will be at the last position at the screen. And you can use these commands again and again. And new slash will go for the next match, like F3
This "z" thing is a feature I miss in Visual Studio, IDEA, Eclipse, Word, WordPad: these commands to scroll text AROUND a pattern... /pattern, z, z., z-. The alternative is the mouse wheel...
I am used to vi since the 80's and is the editor I still use today on Linux terminals so when this happened to me on IDEA I was lucky to remember and suspect of that on the first time.
Sorry if these details are boring
Ensure you haven't unintentionally enabled vim emulation. Go to IntelliJ Idea -> Preferences and select Plugins. Scroll down and look for the vim emulation plugin and if it's checked, then either uncheck it or uninstall it completely.
Ran into same issue with intelliJ 2017.1.2, but no VIM Plugin. However, I had just created an empty project with some .groovy files. I could edit the files in the groovy project, but not java projects.
Only way I could fix java projects, was blow-away workspace.xml files in each, then I could edit again. However, had to re-create tomcat configs, breakpoints, other IDE settings. etc.
I had a problem with entering characters when working with .story files. When I tried to type in any character, it appeared for a short while and immediately disappeared. The cause of the problem was jbehave plugin I was using. After uninstalling it and restarting IntelliJ everything was fine.
It seems to be because another window has the cursor and is not giving it back.
Check any open floated windows, click on them & then click back to your intellij instance
alternatively, if you have multiple intellij instances open the cursor could be there...
Go to the most recently opened IntelliJ instance
Check if the cursor has become stuck in that project's terminal window, or another window
no? check all other open IntelliJ instances
For me it happened because of vim
Om Mac, I solved it by navigating to File → Reload All from Disk.
Keyboard shortcut: ⌥ ⌘ Y
IntelliJ IDEA 2020.1.4
Try disabling plugins one at a time. It was the "BashSupport Pro" plugin that caused it for me. Disabled it and I could type again right away.
I read other comments saying some other plugins caused the issue as well.

IntelliJ IDEA 14 Copy and Paste not working with other applications

Couldn't find the simple solution on SO, so thought I would add this here for anyone looking in the future.
My symptom was that I could copy and paste within the IJ editor, but not from the editor to another application or from another app to the editor.
This was on Windows 10 with IntelliJ IDEA 14.1.6.
I have found the best solution yet (for me in any case). I have tried everything! Including adding and removing Keymap options. And this is actually where the problem lies...sort of.
When you have the Vim plugin installed, Ctrl + c and Ctrl + v is allocated to Vim.
To change that, go to Setting>>Other Settings>>Vim Emulation and set the Handler to IDE. Apply and OK, and Voila!
My solution (thanks to a similar issue reported with Android Studio) was to run IntelliJ as an admin.
Steps to always run IntelliJ in admin mode:
Right-click on IntelliJ icon in start menu search (or wherever you started it) -> Open file location
Right-click IntelliJ shortcut -> Open file location (yes, again to get to the .exe, not the shortcut.)
Right-click idea.exe -> Properties
Compatibility tab -> check Run this program as an Administrator
Right-click idea64.exe -> Properties (if you run IntelliJ in 64 bit mode)
Compatibility tab -> check Run this program as an Administrator
Same problem drove me completely insane but this
https://www.quora.com/Why-doesnt-Ctrl+V-and-Ctrl+C-work-in-IntelliJ-IDEA-14-0-2-on-Linux
worked for me:
You might try Ctrl+INS for copy and Shift+INS for paste and see if they work. They are the traditional cut and paste and have been around a lot longer than Ctrl+c/Ctrl+v.
i don't know why, but this worked!
To make copy/paste through shortcut keys working with Vim Plugin you need to change some settings of Intellij IDE's editor regarding vim emulation, you need to follow these steps for it:
Click Menu File > Settings... (or use shortcut Ctrl + Alt + S)
Select Editor -> Vim Emulation and find the shortcuts and change their Handler column value to IDE as shown in the screenshot below.
The Shortcuts will start working, happy coding :)
Another solution i've found
https://code.google.com/p/android/issues/detail?id=173201
was:
Try to minimize Idea window and move it on the same monitor where is the code that you want to copy and paste it. After this small minimize and move exercise the clipboard starts working.
Ctrl-Shft-V starts working after this for me!!!!!
Try to enable "Use national layouts". Settings- Keymap.
For some reason it worked for me.
PyCharm - Setting>>Vim Emulation Set - Control + V/P/A to IDE

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.

How / can I display a console window in 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