GithubHelp home page GithubHelp logo

Comments (9)

welkineins avatar welkineins commented on August 26, 2024

I add support in v0.6, please take a look and see if it's works for you :)

from vscode-astyle.

Gama11 avatar Gama11 commented on August 26, 2024

Thanks for taking a look!

Unfortunately it doesn't work, at least not unless you open one of the file types that are activation events first. When I hacked in Haxe support for testing, I had to add the activation event here:

https://github.com/Gama11/vscode-astyle/commit/df90d30f498d6908c3fd1471bc1dfd939132b195#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L27

I guess the only way to make a setting like this work is by using onLaguage:*?

Btw, I also just noticed that the name I suggested doesn't really match existing conventions: VSCode settings themselves and those of most extensions seem to use camelCase, so it'd have to be additionalLanguages rather than additional_languages.

from vscode-astyle.

welkineins avatar welkineins commented on August 26, 2024

I see, there are a default formatter for haxe, I thought it was formatted by astyle as I wish in test. I'll reopen the issue and fix it.

About the naming style, I follow C/C++ package which is also use underline to separate words, and I have already one option with this style, it's a little hard to change it :(

from vscode-astyle.

Gama11 avatar Gama11 commented on August 26, 2024

I see, there are a default formatter for haxe

Hm? Not that I know of.

from vscode-astyle.

welkineins avatar welkineins commented on August 26, 2024

OK, I was be miss leading again by myself. formatter is astyle, but it's not active by opening .hx file but a cpp file in my test environment.

I think I have to use "*" in activationEvents, which means whenever vs code starts up.

from vscode-astyle.

welkineins avatar welkineins commented on August 26, 2024

It's updated in 0.6.1 🥇

from vscode-astyle.

Gama11 avatar Gama11 commented on August 26, 2024

Works for me, thanks! :)

Btw, if you move the changelog from the Readme to a separate CHANGELOG.md file, it will show up in a separate "Changelog"-tab in VSCode:

An image would be nice too, but I guess AStyle doesn't have a logo?

from vscode-astyle.

welkineins avatar welkineins commented on August 26, 2024

AStyle doesn't have a official logo, bug I can find one. Thanks for your advice :)

from vscode-astyle.

Gama11 avatar Gama11 commented on August 26, 2024

Cool! It helps a lot to have a logo when you have a lot of extensions installed - can get difficult to tell them apart.

from vscode-astyle.

Related Issues (19)

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.