Set VSCode default to create new ahk files with encoding utf8bom
Posted: 29 Nov 2021, 09:13
I have been trying to get VSCode to create new ahk files with encoding utf8bom (UTF-8 with BOM)
I have found that these VSCode settings in settings.json work:
Note! Both settings are needed. Also, (which is default) does not work
It works both in VSCode user settings and workspace settings (settings.json files)
VSCode version is 1.62.3
VSCode Extension "AutoHotkey Plus Plus v2.8.1"
AutohotKey 1.1.33.10
I posted this topic just to document it here in autoHotkey Board for others to find.
Of course comment's and questions are welcome.
Regards Bosse
I have found that these VSCode settings in settings.json work:
Code: Select all
{
"[ahk]": {
"files.encoding": "utf8bom",
"files.autoGuessEncoding": false,
}
}
Code: Select all
"files.autoGuessEncoding": true
It works both in VSCode user settings and workspace settings (settings.json files)
VSCode version is 1.62.3
VSCode Extension "AutoHotkey Plus Plus v2.8.1"
AutohotKey 1.1.33.10
I posted this topic just to document it here in autoHotkey Board for others to find.
Of course comment's and questions are welcome.
Regards Bosse