On a danish-layout keyboard I have to press twice on the "^" symbol in order to get out one "^" symbol. I would like to remap this symbol so that I only have to press it once.
How can I do that?
Try
SC029::Send {Text}^
or
SC029::Send {Blind}{Text}^
https://www.autohotkey.com/docs/commands/Send.htm#Text
029 is the scan code of this key
Related
When you press Ctrl + Shift + P (or whatever you bind it to) in VS Code a Command Palette pops up. It brings up a magical textbox with a angle bracket > string in it that you can type in to access commands, like >fold all.
But most of the time I instead use this magical textbox to search for functions or objects in my code via #function or in all dependencies via #function, or just open files myfile.py.
So every time I press Ctrl + Shift + P I immediately have to follow it up with a backspace to remove angle bracket >, so that the string in the magical textbox starts with the appropriate # or # character instad of >.
Sadly, typing >#function does not search for function, so the angle bracket > has to be removed manually.
How do I get VS Code to bring up the magical textbox but not insert the angle character >?
(Note: I know I could just write an AHK or similar macro to follow up Ctrl + Shift + P with a backspace, but I don't trust backspaces in a macro.)
Alternately, how do I access a search box with similar #function search behaviour? (The answer is definitely not Ctrl + F.)
You can look the shortcuts just type Keyboard Shortcuts in the command pallet (or magic textbox :D) and search for "Go to File", default it is CTRL+P
When I type ", for example, VSCode closes it automatically with second " and puts cursor in between the quotes, which makes me type the quotes content and then reach for -> key to skip the closing bracket. Reaching -> key is much harder than typing " on my own. So I wonder if I'm missing the intentional way to use auto closing brackets in VSCode.
Is there an easy way to jump past the bracket, which appeared due to "auto closing", with out use of the -> key?
For example, with Snippets one can press "Tab" to jump to another "input section" of the Snippet. But with auto closing brackets "Tab" just adds tabulation sign.
You can press Ctrl + Enter to jump to the next line and skip the closing tags.
I have never been able to understand keybinding syntax well (bc it's hard to google if you don't know the name of a symbol to begin with!).
In DrRacket, I see bindings like "c:g" or "esc;g" .. I have tried hitting those keys in order to no avail. I have tried hitting them simultaneously. Nothing seems to work.
What do they mean? And, in general, how does one go about understanding this syntax?
A generic shortcut:
<modifier-key-1>:<key-1>;<modifier-key-2>:<key-2>;...;<key-n>
means:
press both <modifier-key-1> and <key-1> (that is: start pressing the modifier key, and while it is pressed, press key-1, then release both),
then, immediately, perform the same operation for the remaining combinations of keys,
finally, press <key-n>
Where the standard modifier keys are:
c - the control key modifier
s - the shift key modifier
m - the meta key modifier (not present in many keyboards)
a - the alt key modifier (sometimes already used to insert special characters)
(actually there are other key modifiers in different keyboards).
So, c:x;c:g;s:t means the following combination: Control-X, followed by Control-g, followed by Shift T (this insert Σ, the greek uppercase letter sigma in DrRacket), while c:x;c:g;s means Control-X followed by Control-G followed by the key s (insert the greek letter ς). Finally, the combination m-c-right means press both the modifier keys Meta and Control with the right arrow key.
When the meta modifier key is not present, it is often replace by the ESC (escape) key. Since this is not a key modifier, but a regular key, in this case it must be pressed and released before the next character. In other words, esc:g means: press the ESC key, release it, then immediately press the regular G key. esc-c-right means: press ESC, release it, then press C-→.
Moreover, when the ALT key is already used by the operating system to insert special characters, like in Mac OS X, it can be used as regular modifier key in DrRacket by setting a special preference (in Preferences > Editing > General).
In DrRacket you can find the current keybinding with the menu item: Edit > Keybindings > Show Active Keybindings, and you can find the relevant documentation here.
I am ultimate beginner in emacs.. How to type commands that need shift key? For example: to type M-> i need to type "Meta key(Alt)" + "shift" + "." Hope I was clear.. I use US keyboard layout. All the best..
To get M-> type first the "Alt" key and then the "Shift" key and the "." key at the same time.
You press those keys as a chord, just like shift-alt-. You can also use Esc as a synonym for the meta key if you prefer that.
In my DOS prompt I have to put in a tilde (~) character to open any files.
For some reason it won't show up in the DOS box/prompt.
Is there any form of Ctrl shortcut key thing that could get me to typing a ~ character?
It's only the DOS prompt that won't recognize that key is what gets me the most though.
Hold down the Alt key and type 0126 (zero one two six) on the numeric keypad. That is the ascii value of that character.
GWBasic:
10 a$="~"
20 ? asc(a$)
run
126
In DOS you need to begin with a 0 + value you need for other symbols and it only works on the numeric keypad.
On Spanish keyboards you can press "Alt Gr" and "4".
That key combination will write a tilde anywhere, including the command line.
How about trying to copy/paste it?
Start->Run->charmap
select the ~ char and hit select then copy
open the prompt window and go Alt+Space then Edit->Paste
I typed SHIFT and the "key left to the digit 1" to produce a tilde ~ in my multimixed system.
(This actually worked. Actual keyboard is de-sg, but the multiemulated environment behaves like a DOS or WinPE US keyboard, in a command window.)