Skip to content

Instantly share code, notes, and snippets.

View Axlefublr's full-sized avatar

Axlefublr Axlefublr

View GitHub Profile
@Axlefublr
Axlefublr / VimStudy.md
Created April 30, 2023 14:50
Vscode neovim api
Command Description
VSCodeNotify(command, ...) VSCodeCall(command, ...) Invoke VSCode command with optional arguments.

How to remap keys in the registry!

Creating the scancode map

Press Windows + R and type in regedit

Windows will ask for your admin permission, press yes and go to:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

Settimers are really useful

But to properly use them, we're going to learn the concept of threads

Here's a hotkey with a while loop

The idea is a toggle

You press the hotkey once, the tooltip starts following your mouse

At first, objects seem scary, but once you learn how to use them you will love them!

In v1, objects very much exist, but aren't used in places where they make a lot of sense to be in

For example, v1 has this janky global variable "ErrorLevel", that gets updated by many commands

You used to have to use it to check what a command "returns"

Well sike, commands don't return anything, and Errorlevel can technically change at any moment

Did you know that you can customize your docs?

You can set your default font size, what tab you start out on and make it dark mode.

The only catch is that you might not be able to.

But that's very easy to fix.

Go to the folder where autohotkey is installed.

So say you have installed v2 and now you want to set up VS Code for it

That used to be kinda complicated, but now there is a nice extension you can install

Search up "Autohotkey v2 language support" and install this extension

Well, thanks for watching and...

Nah, just kidding