diff --git a/docs/vscode-instructions.md b/docs/vscode-instructions.md index 7ab4f65..00e534c 100644 --- a/docs/vscode-instructions.md +++ b/docs/vscode-instructions.md @@ -48,11 +48,11 @@ If you (for whatever reason) want to disable the global hotkeys, you can do so i ## Inseting code into a chip Open the .yolol-script you want to insert in vscode (it has to be the current active file). Go to Stabase's window and open the yolol-chip you want to fill. Unlock it, aim your cursor at it and click a line. Now press ```Ctrl+I```. Vscode will start to auto-type your code into the chip, starting at your current cursor-position. -## Erasing a chip -The auto-typing only works properly when the lines of the chip are empty before inserting code. Vscode-yolol can also automate this for you. Click a line on your chip and press ```Ctrl+D```. This will end the key-strokes Ctrl+A, Entf, Down 20 times, resulting in an empty chip, starting at the line you clicked. (If you clicked line 1, the chip is now completely empty) +## Purge a chip +The auto-typing only works properly when the lines of the chip are empty before inserting code. Vscode-yolol can also automate this for you. Click a line on your chip and press ```Ctrl+P```. This will send the key-strokes Ctrl+A, Entf, Down 20 times, resulting in an empty chip, starting at the line you clicked. (If you clicked line 1, the chip is now completely empty) ## Overwriting code -By pressing ```Ctrl+O``` vscode will overwrite the code on the chip, starting from the current, line with the yolol-code of the currently open script in vscode. (This is effectively a faster variant of ```Ctrl+D```+Select line+```Ctrl+I```) +By pressing ```Ctrl+O``` vscode will overwrite the code on the chip, starting from the current, line with the yolol-code of the currently open script in vscode. (This is effectively a faster variant of ```Ctrl+P```+Select line+```Ctrl+I```) # Debugging This extension enables you to interactively run and debug yolol-code. To learn how to debug using vscode see here: https://code.visualstudio.com/Docs/editor/debugging . diff --git a/pkg/langserver/autotype_win.go b/pkg/langserver/autotype_win.go index 890f293..e2b86ed 100644 --- a/pkg/langserver/autotype_win.go +++ b/pkg/langserver/autotype_win.go @@ -24,7 +24,7 @@ var ( AutodeleteHotkey = &win32.Hotkey{ ID: 2, Modifiers: win32.ModCtrl, - KeyCode: 'D', + KeyCode: 'P', } // AutooverwriteHotkey is the hotkey to overwrite the current line with new ones AutooverwriteHotkey = &win32.Hotkey{ diff --git a/vscode-yolol/README.md b/vscode-yolol/README.md index 73dba37..63b31f4 100644 --- a/vscode-yolol/README.md +++ b/vscode-yolol/README.md @@ -16,6 +16,7 @@ If you experience any issues or would like to request a feature, please [open an - Auto-completion - Commands for optimizing yolol - Interactively debug YOLOL-code in vscode +- AUto-type your code into Starbase - Also supports nolol # Instructions