Comments (9)
I add support in v0.6, please take a look and see if it's works for you :)
from vscode-astyle.
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:
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.
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.
I see, there are a default formatter for haxe
Hm? Not that I know of.
from vscode-astyle.
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.
It's updated in 0.6.1
from vscode-astyle.
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.
AStyle doesn't have a official logo, bug I can find one. Thanks for your advice :)
from vscode-astyle.
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)
- Fail to format centain file HOT 4
- Can't find astyle. (astyle) HOT 1
- Reload or restart vscode after setting updated
- --dry-run isn't supported
- shift-alt-F adds blank lines at the end of file every time it's called HOT 2
- not work in an unsave new file HOT 1
- astyle selected code HOT 1
- Cannot process the input stream HOT 1
- Request for Command Line Options HOT 2
- asytle configuration do not show up in Settings
- Different output with cmd and vscode
- astyle doesn't work on VSCode 1.44 "format selection"
- use specific astyle option file instead of “cmd_options” in workspace if had set "astyle.astylerc"
- not working (conflict with clang-formatter in cpptool package) HOT 6
- Support ${workspaceRoot} variable substitution in all options HOT 1
- does upgrade 1.9 of vscode broke the plugin HOT 12
- Failed to launch astyle on format HOT 1
- There is always a extra "}" at the end of the file after formatting.
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 vscode-astyle.