Replies: 3 comments 3 replies
-
How exactly are you opening the picker that you screenshotted? For me, the default user snippets look like this: The name of the file shouldn't matter, just the name of the snippet itself. Would you mind experimenting without changing the file name and changing the name of your snippet? You should use a snippet name different than |
Beta Was this translation helpful? Give feedback.
-
The "redundant?" snippet files you mention are necessary: they load the pre-built snippets for library functions--you can see them at https://github.com/mark-wiemer-org/ahkpp/tree/main/language |
Beta Was this translation helpful? Give feedback.
-
OK, I can see where I went wrong now. I selected In my defence, though, I think the Readme could be a little clearer, e.g. ... You can customize the template snippet to fit your needs:
"CustomAhkTemplate": {
"body": [
"; My new script with no directives",
"; Here is a second comment line",
""
]
} Update your VS Code settings for AHK > File > "Template snippet name" to the name of your snippet (CustomAhkTemplate) |
Beta Was this translation helpful? Give feedback.
-
Finally figured how to create a custom v2 template as prescribed here, and adjusted the template name in the settings.
But, wouldn't it be possible to just add the ability to open and edit the default template/snippets files from the AHKpp settings?
...\.vscode\extensions\mark-wiemer.vscode-autohotkey-plus-plus-5.0.3\language\snippetsV1.json
...\.vscode\extensions\mark-wiemer.vscode-autohotkey-plus-plus-5.0.3\language\snippetsV2.json
Beta Was this translation helpful? Give feedback.
All reactions