-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AHK V1 files language mode is always set to AutoHotkeyV2
#396
Comments
Alternatively, you can rename your Finally, you can add I've updated the v5 changelog with all of these notes as it wrongly claimed these files defaulted to AHK v1--thank you for reporting this. |
Hey thanks!
This would be the most sensible thing to do but I always end breaking something when I mass rename files. For example paths inside scripts ending with
I would like to avoid doing this, I understand in one of situations though.
What do you mean by this? Are you reffering to the File Explorer "Open with..." feature? I was not aware you can fix this issue here, if so this would be an ideal fix for people who use V1/V2 |
When the "change language mode" picker appears, you have the option of changing it for just that one file or to "configure file association for .ahk", (i.e. all |
I was not aware of this at all. I will give this ago tomorrow. Thanks! |
Hey, I was able to give your solution ago and sure enough you was right. It was a much better solution than the awfull one I had in mind. Thanks allot for that. |
@mark-wiemer May be best to create a separate pinned issue for this #396 (comment)? - I can see this being a frequent issue for those who have not updated yet. |
Good idea. I'm a bit busy rn but I will update the bug template shortly and pin an FAQ bug for easy access :) |
Another way is to paste: {
"files.associations": {
"*.ahk": "ahk"
}
} In to the vscode |
To do a full uninstall and re-install of AHK++: There are some special locations where VS Code keeps a copy of all extensions, even after you uninstall them. I find those locations using the "Everything" search engine. Looks like it's under Note that your settings will be preserved as they're stored in |
Ref #445 for cleaner instructions :) |
I think this setting should be mentioned on extension page: https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus |
Since update to the latest version V1 files,
.ahk
, are recognised as V2 files, by this I mean the current language mode is set toAutoHotkeyV2
.I have yet to start using V2, a few libraries that I count on have yet to ported over to V2, so I use V1 only for now.
Is there setting to prioritise V1, or to reserve
.ahk
extension for V1.The following is typical of the first few lines of my
.ahk
files. Is this not enough to know this is for AHK V1 files?The text was updated successfully, but these errors were encountered: