sublime text syntax auto completion

Get help with using AutoHotkey and its commands and hotkeys
Posts: 27
Joined: 03 Mar 2020, 04:09

sublime text syntax auto completion

24 Jul 2020, 03:00

hi, need some help here, much appreciated.

as a non programmer, please forgive my noob question.

is it possible to make the syntax auto completion only complete the main part, instead of send the whole syntax.

more specifically, just leave the part in red box.

thanks and stay safe!

User avatar
Delta Pythagorean
Posts: 574
Joined: 13 Feb 2017, 13:44
GitHub: DelPyth
Location: Somewhere in the US

Re: sublime text syntax auto completion

24 Jul 2020, 09:55

Well, you could:
In the auto completions file (AutoHotkey.sublime-completions) in the AutoHotkey package, you can add your own auto completions.

However you could modify the #IfWinActive line to be: {"trigger": "#IfWinActive", "contents": "#IfWinActive${1:, [ WinTitle}, ${2:WinText]}$0"},. So when you add the directive to your script you could just press enter and it'll overwrite it and remove the extra parameters.

On a side note:
The Sublime Text AutoHotkey package is kind of underdone and slightly outdated. I'm currently working on updating it and making it better overall.

- [AHK].......: Unicode 64-bit
- [OS].........: Windows 10.0.19041
- [GITHUB]...:
- [PAYPAL]....:
- [DISCORD]..: Tophat Cat // Delta#8888

Remember to use [code]CODE[/code] for your multi-line scripts.
Stay safe, stay inside, and remember to wash your hands for 20 seconds!

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], hasantr, milkygirl90 and 50 guests