I'm new to IntelliJ and I saw a start-up tip that said, "The ⎋ key in any tool window moves the focus to the editor." However, I don't know what the ⎋ key is. I've been programming a long time. Is it possible there's a key on my keyboard that I've missed all these years?
⎋ relates to Escape on Macintosh keyboards. Here is some documentation showing such.
Related
As best as I can tell, Visual Studio 2019 completely removed the ability to jump to matching brace.
I tried the hotkey I've been using for years (Ctrl-]) and it changes indent instead (why would I need that? This is C#, not Python). I also tried looking up the KeyMap (Environment->Keyboard) setting and searching for match, and there was nothing relevant. As far as I can tell, Microsoft has completely removed this feature, but I wanted to confirm that Fattie and I are not the only ones with this problem.
(for reference, here is the question for VS 2008 whose answer no longer works because the default keyboard shortcut has changed.)
EDIT: The setting still exists, but has been renamed to not contain the all-important keyword "match". See accepted answer.
The control is still there.
Go to Tools -> Options -> Environment -> Keyboard and lookup Edit.GotoBrace to see the current key combination for this feature:
You can set the key combination from the pictured menu.
just for the ones among us with non-us keyboard. On my keyboard, I need to press 'AltGr' to access "]". Therefore Ctrl+] doesn't work. Interestingly, VS has already compensated for that problem and changed the hotkey to Ctrl+`, which works nicely for me. You just need to know the hotkey has changed (depending on your keyboard).
Hope this saved a few minutes of your time ;)
Regards,
Eleusius.
On a Finnish/Swedish keyboard the Edit.GotoBrace field is mapped to Ctrl+Å
I have the following keymap.cson file to config my Atom editor:
'body':
'ctrl-shift-cmd-left': 'window:focus-pane-on-left'
Only when I run this command, the current text is selected. Which without the alt key held, would make sense as a highlighting command.
However, is I bind a key command which I think most likely doesn't have a competing action, say alt-cmd-;, it seems to be registered into the list of key commands in Settings/Keybindings, yet again no window focus is happening.
Edit:
I now realize that pane and not window may be the relevant term for what I want. Still, searching the Key Bindings for pane focus switching didn't yield anything obvious. Surely, there must be a simple way to select through files in the Project area while editing.
Although this answer doesn't match the title of the question, based on your edit I think that tree-view:toggle-focus is what you're looking for.
Please try using Ctrl + 0.
And, if you use Nuclide (related to React), please try disabling it to check the difference.
I'm trying to bind the cmd key in Pharo 3.0 to another key because my system (linux+xmonad) already uses the alt key for other things.
I am trying to bind cmd key, currently mapped to alt, to the win/super/meta key.
I changed method defaultModifier in UnixPlatform class, from:
defaultModifier
^KMModifier control
to:
defaultModifier
^KMModifier meta
But nothing changed. Should I do something else?
There is no easy way to change it in the image short of manually rewriting the shortcuts, because there are many tools that define the shortcut explicitly for each platform by themselves plus there no consensus on what the default shortcut for linux should be (right now it is ctrl and alt).
However this is something that might be tackled in the next version (=5) (4 was released today).
I had to change my dwm (xmonad predecessor) keybinding to the "win" key because of it. (On the plus side it has freed alt, so I can now use alt for example to switch tabs in Chrome and many other.)
There are two places where you might want to make changes:
either at the vm level, where you could change the keyboard event handling (not recommended)
in the keymapping packages you'll find the code to deal with the different key combinations. The different packages then add shortcuts using this mechanism.
After search in the nautilus shortcut description:
I searched in the forums to find something about this, but doesn't work in Pharo v3.
I still looking for a shortcut that I can use to easily change between open windows such as alt + tab/cmd + tab in a SO.
Does anyone know how to do this?
It is work in progress. Right now, it seems that the key combination has not yet been decided/implemented.
When I explore the key mapping attached to the world,
World kmDispatcher explore.
I only see CMD+K reported as part of directKeymaps bound to [ self openAndCommitToMonticello ].
If I browse senders of openAndCommitToMonticello, I discover some incantation:
Komitter class>>initialize
World
bindKeyCombination: $k command
toAction: [ self openAndCommitToMonticello ]
Apparently, CMD+K must be understood as lowercase $k... (?)
The message for navigating thru windows is SystemWindow class>>sendTopWindowToBack (don't ask how I discoverd this...).
There are two senders
the old keymapping infrastructure PasteUpMorph>>defaultDesktopCommandKeyTriplets
A window menu (triggered by upper right down triangle) WorldState class>>windowsOn:
It seems the assigned key was \... So we can try and hook this key binding again.
Since it is rather not convenient on my French mac keyboard (CMD+\ means holding four keys !!!), I'll do it with right arrow.
If you look at KMSingleKeyCombination class>>specialKeys, you see that code for right arrow is 29.
So let's try this:
World
bindKeyCombination: 29 command
toAction: [ System sendTopWindowToBack ].
Et voila, you get a new shortcut for navigating.
From Denis Kudriashov on the Pharo Slack,
https://github.com/juliendelplanque/Mirage
provides ergonomic support in Pharo 5.0.
Loadable from the Catalog.
In Pharo 3.0 - Alt+tab works fine (continuously pressing it will keep flipping through windows, and pressing enter or space will select the displayed window)
I found a lot of tutorials and forum questions around remapping key bindings in Textmate and for the most part I know what needs to be done as far as copy the KeyBindings file and then make the changes needed. More on what I am talking about here http://blog.macromates.com/2005/key-bindings-for-switchers/
I am interested in re-mapping the esc key for nextComplete to control + spacebar. The problem is I am having a hard time finding what the code is for the spacebar or if this is even supported.
I mainly do actionscript development in eclipes and code hinting dialogue is triggered by this key combo and I would like to have the same in Textmate. Hitting the esc key kind of sux. I thought I would get used to it but the fact is that it just kills the flow of typing the rest of your code.
I could use some help figuring out what he code is for the space bar. I know control key is the ^ symbol. I tested this by changing the keybinding to ^s and it remapped just fine.
I think this one can be done with the OS X gui:
System Preferences, Keyboard, Click Keyboard Shortcuts Tab
Click the little Plus, and choose Application: Textmate.app, Menu Title: Next Completion, Type Command Space (or Control Space) and click Add and that should work. You might want to remove conflicting shortcuts - possibly spotlight?
For future reference, I used Key Codes to find the key for space is: \UF20