GithubHelp home page GithubHelp logo

Comments (9)

mark-wiemer avatar mark-wiemer commented on July 30, 2024 4
  1. Open a .ahk file
  2. F1 -> "Change language mode"
  3. Configure file association for .ahk
  4. 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.

mark-wiemer avatar mark-wiemer commented on July 30, 2024 3

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.

GaryAtlan82 avatar GaryAtlan82 commented on July 30, 2024 1

I was not aware of this at all. I will give this ago tomorrow. Thanks!

from ahkpp.

GaryAtlan82 avatar GaryAtlan82 commented on July 30, 2024 1

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.

wenfangdu avatar wenfangdu commented on July 30, 2024 1

Another way is to paste:

{
  "files.associations": {
    "*.ahk": "ahk"
  }
}

In to the vscode settings.json.

from ahkpp.

GaryAtlan82 avatar GaryAtlan82 commented on July 30, 2024

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.

fade2gray avatar fade2gray commented on July 30, 2024

@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.

mark-wiemer avatar mark-wiemer commented on July 30, 2024

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.

mark-wiemer avatar mark-wiemer commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.