sublime text syntax auto completion

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
zcw1030
Posts: 34
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!

Image
User avatar
Delta Pythagorean
Posts: 627
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

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]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 356 guests