This is a silly question and I apologize but I can not find the solution ANYwhere and I can't code with this situation but at the moment, when I press Alt + 7 or any number it opens some window in IntelliJ like the project structure or something like that, when before it always typed the curly brackets or square brackets. I don't know what caused this change as I didn't mess with any settings so help would be greatly appreciated.
Um so apparently switching languages back and forth eventually fixes the problem
Related
so this is annoying me because I use tab to leave brackets etc and when I use auto-complete and a semicolon is being placed after the bracket this happens:
https://streamable.com/i9as2
as you can see in the first statement I'm having problems "jumping" over the semicolon while when I dont use the auto-completion in the second statement (and don't get the semicolon automatically) it's way easier to navigate through it with tab. I know that there is the shift-enter shortcut but I don't really want to develop a habbit of using it so often because I can imagine trying to do that when working with my other IDE's can become quite annoying. I searched through the options but did not find any option do disable that behavior. Does anyone know a way to get around this?
Second Tab press should jump after the semicolon, I've created a feature request for that.
It's already fixed and the fix will be available starting from 2019.2 IDE version.
When working with IntelliJ on a JavaProject it shows to use alt + enter to import a class for example, but this isnt working anymore. It worked in the past, but something must have changed, -the shortcut is still set,-other shortcut would work- i cant assign alt+enter manually, although if i reset it to default it gets set to it, any ideas how to fix my problem? btw my keyboard layout is german, but i dont think it is the problem because it worked in the past, my os is win 7. edited: when i am working within the IDE and i e.g. write Arrays.toString(a); and didn't import "java.util.Arrays" yet, the IDE says: " ? java.util.Arrays? Alt+Eingabe" (Eingabe = Enter in German) so when i assign a different shortcut it works, but with Alt+Enter it doesnt thanks in advance for any help.
"Well, it means IDE doesn't see the shortcut for some reason. Probably it's already used by some other application or the operating system. – CrazyCoder 25 mins ago "
i closed all applications and it turns out that, Facebook GameRoom, running in the background, somehow is the reason the shortcut doesn't work, i have no idea why, but thats the solution
many thanks to CrazyCoder
It was working earlier but it stopped working due to unknown reason,
One workaround is Try fn+Alt+Enter
I had the same problem
and it turned out to be the keyboard language in Windows, It wasn't english,
so just make sure you are on English
On my side, culprit is some VPN software called PulseSecure
fn + Alt+Enter+Shift worked for me (credits #ketankk).
My problem solved. just try :
LEFT Alt + Enter
LEFT Alt+Enter
Looks like some languages override Right Alt behavior, at least in case of Lithuanian Left Alt is working fine with Lithuanian enabled, Right does not, when switch to English, everything is fine again. Was pulling hair to figure out why out of nowhere it stops working, thanks
In my case hint is showing Alt + Shift + Enter, but Ctrl+Shift+Enter works for some reason oO
In my case, I mapped Alt+Enter to a system shortcut (for expanding the current window) and I forgot. So it might not be another program, but your past self-sabotaging you.
I have the same issue. Alt+Insert not working while I was trying to generate getters/setters for my POJO class.
I just added another shortcut for that "Generate" operation.
If you are using Intellij Idea, you can do that by following steps:
Go to File -> Settings -> Keymap.
On the search bar appeared, search for "Generate", you will find an entry to which assigned shortcut will be Alt+Insert.
Right click on this entry and select 'Add Keyboard shorcut'.
Now, type your own shortcut that you want. In my case, I used Ctrl+Shift+G.
It worked fine and now I am using my new shortcut for Generate operation.
I had the same problem while upgrading to a new IDE version. The cause was a plugin error in new IDE version, I resolved disabling/updating that plugin.
So I've just migrated to Fedora Linux and ran over this problem when using my Idea. I have a notebook (no numpad) and I previously used the very same Idea (Ultimate, latest) with Win10 on this very same notebook and did not experience this.
I use default English layout. In the lower row of QWERTY, to the right there is / button which is also ? with shift. It works as expected anywhere else, but in Idea, when I use it as a CTRL + / shortcut it actually treats it as a Ctrl + . Thus, instead of commenting selected block of code, it collapses it. I checked it in Settings -> Keymap and this is exactly how Idea interprets it.
Is there any way to change this back to normal? I don't really want to rebind this hotkey as I'm used to it by now.
Posting a workaround that helped me.
So the bug i'm experiencing is this one and it's weird how the bug is still there.
So in my case it didn't work as expected because I had Russian keyboard layout set as first. Switching Russian to second and English to first fixed the problem for me. That's not really a 'solution', rather than a 'workaround', but it worked for me.
The plus / minus signs are gone to expand / collapse regions. The vertical lines to indicate regions are gone too.
The regions are collapsing and all the commands under edit, outlining work fine.
It's just I have to double click on the collapsed region to expand and there's no way to collapse a region with the mouse. Only the shortcut keys (ctrl m, m) or the menu will do it.
I swear it was right this morning but I did something to mess it up. I can't find any option in tools to fix it either.
UPDATE
Now, some files are doing this and other files (both opened at same time) are not doing it. If anyone can explain, I'm all ears.
Press ctrl+, (control plus semicolon) to open the settings. And type Folding Strategy in the setting's search bar. It is set to auto by default. You can set it to always for the controls to be visible at all times, otherwise, it shows only on mouse over.
This same thing happens to me multiple times a day using VS.NET 2015 Pro version 14.0.24720.00 Update 1. Restarting the IDE always restores normal function for a while but the problem always returns, seemingly at random.
UPDATE:
I tried changing the theme from dark to blue and it restored the outlining. I then changed back to dark from blue and the outlining continued to work normally. Still a pain but definitely a lot faster than restarting the IDE.
It happened with me also. One file was just fine and other file (js) was not. I searched it a lot.
Try selecting a method/if check etc and press ctrl+M+H which is short cut for right click outlining > Hide Selection.
You can do it on the whole document as well.
This might be helpful when working on a file which has too much code in it and you are going through different functions again and again. It is painful with scrolling mouse for so long.
You can use short cut for for moving at the start of the method or at the end of the method with the following :
select parenthesis { start or end } and press ctrl+}
Hope this helps.
It works again.
I closed all windows and reopened my code file.
Now it shows the plus minus glyphs again.
I know this is an old post, but I wanted to share a quick solution. if you right click and hover over 'Outlining' and then click 'Collapse to Definition', the widget comes back. Then just press [ctrl] + z to undo and continue where you left off.
With Golang, if the code has some syntactic mistakes that would prevent it from compiling, the language server cannot decide which parts of the code are collapsible, and which not.
Therefore the solution is either switching to the Folding Strategy in VSCode settings to indentation folding, or fixing the syntactic errors.
Simple solution : CTRL + M + O, then CTRL + Z
Thanks to SparrowEatsHawk
I'm running Pharo 4.0 on top Fedora 21. When I type double quotes I'm getting this:
˙˙
Instead of
"
How to work around this problem?
Thanks in advance!
Edit:
By the way, typing twice single quotes do not work.
OK... I'm really up to put comments in my code...
Looking at my new keyboard's layout:
we can see that to get the proper double quotes I actually need to press Shift and ¨ keys while having the Super R (ALT GR) key pressed down.
It was supposed to be the same for others applications, such as Firefox, OpenOffice Writer, but seems they were designed to leave keyboard interactions up to the operating system to supply them with processed keyboard characters.
Anyway, there's nothing wrong with Pharo. It's actually interpreting the keyboard as it is.
Thanks for the comments!