Comments (9)
- Open a
.ahk
file F1
-> "Change language mode"- Configure file association for
.ahk
- AutoHotkey v1
Alternatively, you can rename your .ahk
files to have .ah1
or .ahk1
extensions
Finally, you can add #Requires AutoHotkey v1
to each of your files--that's how the extension determines language mode for now, as it's the most definitive and simple way to do things :)
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.
from ahkpp.
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 .ahk
files). Your choice is saved in your settings and you should only have to do it once and it should apply to all your projects!
from ahkpp.
I was not aware of this at all. I will give this ago tomorrow. Thanks!
from ahkpp.
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.
from ahkpp.
Another way is to paste:
{
"files.associations": {
"*.ahk": "ahk"
}
}
In to the vscode settings.json
.
from ahkpp.
Hey thanks!
Alternatively, you can rename your .ahk files to have .ah1 or .ahk1 extensions
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 .ahk
.
F1 -> "Change language mode"
I would like to avoid doing this, I understand in one of situations though.
Configure file association for .ahk
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
from ahkpp.
@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.
from ahkpp.
Good idea. I'm a bit busy rn but I will update the bug template shortly and pin an FAQ bug for easy access :)
from ahkpp.
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 C:\Users\%user%\.vscode\extensions\mark-wiemer.vscode-autohotkey-plus-plus-5.0.3
by default, try removing that folder entirely and then uninstalling.
Note that your settings will be preserved as they're stored in C:\Users\%user%\AppData\Roaming\Code\User\settings.json
:) (note this folder is hidden in File Explorer by default)
from ahkpp.
Related Issues (20)
- Flip-flopping Schrödinger's cat HOT 3
- How to get intelisense suggestions for functions stored in '.\Documents\lib' ? HOT 2
- Parser stops working on AHK v1.1 files HOT 4
- Extension forgot AHK location HOT 4
- "Go to definition" using Ctrl + Click jumps to another file opened in editor / or doesn't jump to definition at all within the same file if the file is very long ~10k lines HOT 1
- Wrong indentation when moving line of code out of if-statement HOT 1
- Wrong indentation: press Enter after condition-block in If-statement
- AHK++ is not activating. HOT 11
- "Run" command thinks a V1 script is V2. HOT 4
- Formatter replaces multiple spaces with a single space inside a string HOT 1
- Wrong indentation on copy-paste HOT 6
- How to format code There is no formatter for 'ahk2' files installed. HOT 2
- No format intelicence or formating or colors HOT 4
- Language Switch problems HOT 2
- format code feature changes the number of spaces in a constant string HOT 1
- Debugger takes keyboard focus from active window HOT 1
- The Open AutoHotkey Help command is failing HOT 2
- allow rename variables HOT 1
- Availability as standalone LSP HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ahkpp.