I can use it in other applications such as notepad, but it just won't work with vs code.It seems that there is a bug or did I do any thing wrong? For example
::td::TODO
and every time I will get a different result:
AHK BUG
How to fix this?
It is a bug from an extension Markdown All in One It is fine when I disabled it.
Autohotkey workaround:
::td::{Sleep 100}TODO
Increase the 100ms as the hotstring (to delete) becomes larger. On my machine I could expand hotstrings with length 25 in 250ms. Your mileage may vary.
Relevant Github Issue
I replaced my hotstrings en masse with the following regex:
Search: ::[a-z0-9_-]+::(?!\{)
Replace: $0{Sleep 250}
In the Github issue Mehul has another workaround:
:SE, K1:td::TODO
This does not require a variable amount of ms as it will always work regardless of hotstring length but it took so long to print the replacement text I found it unworkable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With