Page 1 of 1

VS Code: New AHK File Issue

Posted: 03 May 2021, 12:57
by marypoppins_1
Hey,
I was wondering if someone knows the reason for the ahk template not always working. So basically, when I right click anywhere and make a new ahk script, it works perfectly and uses the custom "template" from the Template.ahk. However, when I make a new ahk file using Visual Studio Code, it uses a weird template and I wasn't able to locate it anywhere. I attached the picture below. If someone knows how we can change the template used by VSC it would make my day.
Thank you

Re: VS Code: New AHK File Issue

Posted: 03 May 2021, 14:02
by marypoppins_1
Hmm, so after some digging I found out that this was caused by the AHK Plus Plus extension by Mark Weimer. However, when I disable the extension and make a new ahk file it's empty and not using the "template".

Re: VS Code: New AHK File Issue

Posted: 04 May 2021, 11:29
by joedf
If you may, I think reporting this bug here would be helpful :thumbup: :
https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/issues

Re: VS Code: New AHK File Issue

Posted: 06 May 2021, 13:11
by marypoppins_1
Alright will do. Thanks

Re: VS Code: New AHK File Issue

Posted: 01 Feb 2023, 13:35
by Rightclick
You can set whatever template you like in settings: "Snippets: Configure User Snippets".
See details here: https://github.com/vscode-autohotkey/ahkpp/blob/main/docs/TemplateSnippet.md

Re: VS Code: New AHK File Issue

Posted: 07 Feb 2023, 22:59
by Curdflappers
Yep, great callout Rightclick. Happy to answer any further questions you have about the extension :)