I am wanting to choose from emacs autocomplete options without using the arrow keys. In vim this would be accomplished with Ctrl-n and Ctrl-p but doing the same in emacs moves me to the next line. Is there a keyboard shortcut I can use to do this? I know I could probably make a keybinding for this myself but I wanted to know if there was something idiomatic already there.
In auto-complete you can select next candidates using M-n and previous candidates using M-p. Here is a link to the manual
Related
I'm not talking about the abreviations (which works fine); but rather keyboard shortcuts.
Like this one for instance, Ctrl+k is supposed to remove a tag(opening and closing) and re-arrange the inner HTML's indentation.
This is just one example, but most shortcust found in emmet's page, doesnt work on vscode, why is that ? how can I fix it ?
If you look at the Keyboard Shortcuts page and search for emmet you will see many emmet commands unbound to a keybinding. Including
editor.emmet.action.removeTag
[I think there are just too many emmet commands for vscode to have devoted keybindings to them when most people wouldn't use them.]
If you hover over any command and click on the + sign to its left vscode will open an input box where you can enter your desired shortcut keybinding.
I wouldn't recommend Ctrl+K as that is used as a part of a lot of default keybindings in vscode.
Are there commands equivalent to Emacs' C-h k and C-h w?
If not, is there at least a big file containing all keybindings I can search through?
Edit: the "vice-versa" is trivial if you know the command name. Just type it in the command prompt and it shows the associated keybinding. I'm more interested in the former.
v1.28.0 added a better way to search for bound key chords, see search keyboard shortcuts: release notes.
Record and search keyboard
shortcuts
In the Keyboard Shortcuts editor (Ctrl+K Ctrl+S), you can now search
for keybindings just by typing keystrokes instead of typing out the
key name (example 'shift'). Turn on the Recording Keys mode and type
the keystrokes you want to search for.
You can also enter into the Recording Keys mode using Alt+K. Press the
Esc key to exit from Recording Keys mode
.
Open the keyboard shortcuts editor (cmd+k cmd+s), and you can search for keybindings to see what they're bound to. e.g. search cmd+s and "Save" will be returned.
You can also click the keybindings.json link on that page to see all the keybindings in json form.
A) Help -> Keyboard Shortcuts Reference
It will open a PDF with a table containing "hotkey - command" pairs, categorized. (On Windows, it will open this PDF.)
B) File -> Preferences -> Keyboard Shortcuts
This will open the keyboard shortucts editor where you can search for the command or even the keys.
How are we supposed to configure DrRacket so that it does not use Emacs key bindings? Like I type C-s and it just saves the code instead of bringing up the search line. Or I use C-x C-f and it won't open another file. The DrRacket documentation claims to not use Emacs bindings but it obviously does.
You want to disable the check box, Enable keybindings in menus.
Unfortunately this checkbox is a bit buried:
Open the Racket Preferences dialog.
Click the Editing tab.
There's a row of sub-tabs for that. Click the General sub-tab.
A few items down you should see the Enable keybindings in menus check box. Un-check it.
I've recorded and saved two macros in Notepad++, giving them Ctrl+B and Ctrl+Shift+B shortcuts respectively. First doesn't work (does not playback macro), while second is all fine (restart doesn't help).
Can macros in Notepad++ have "simple" keyboard shortcuts, like Ctrl+B?
BTW: I'm trying to "emulate" formatting shortcuts (like bold, italics etc.), but for Markdown, not for HTML. That's why Notepad++'s plugins like "WebEdit" won't help me here.
Reworded:
You can save a macro with CTRL+B shortcut...
but you can't use the shortcut to same combination to call it back.
It think it's because it seems that key stroke is already used and your own combination is not overridding the original reserved one.
Ctrl-B Go to matching brace
It seems like a bug within notepad++ or not well documented feature.
Following mehow's answer I found the solution. Ctrl+B shortcut doesn't work for my macro, because it is used with another command.
Going (in Notepad++) to Settings > Shortcut mapper > Main menu, locating Go to matching brace command and setting its shortcut to None solved the problem. From this moment, each press of Ctrl+B calls my macro, not that previous command.
I'm trying to make the switch from Emacs to Eclipse. One thing that seems to be missing is its buffer/window support.
I know in Eclipse I can drag an editor's tab title over to split the view, creating the equivalent of a new Emacs window, which is a step in the right direction.
I can't find any key bindings for this functionality, though. Ideally, I'd like to be able to set keys to split horizontal, split vertical, switch to next (there is a next editor, but I want the next window/whatever you call it), switch to previous, close this window split (not this editor), close all other editor window splits.
As it is, the only way I've found to close a split pane is to drag all the files over one by one until none are left. Things like this make working with split screens tedious in Eclipse.
Any help would be appreciated, hopefully there's something simple I'm missing.
Emacs+ has this exact behavior for Eclipse: http://www.mulgasoft.com/emacsplus
According to the keys preference there is an unbound command to open a new editor, which would open another tab rather than split the view. There is also an unbound command to close all other editors. Ctrl+W will close the current editor and Ctrl+F6 will switch between tabs. You can bind or rebind these to be closer to their Emacs equivalents. Alternatively there is an Emacs key map which you may find more helpful. Unfortunately I don't it's possible to split the view from the keyboard.
Try Ctrl-Tab and Ctrl-Shift-Tab for cycling through tabs (buffers) and Ctrl-F4 for closing a tab. You can also look through the shortcut bindings in the eclipse configuration.