Comments (6)
With the latest version of you can disable the CLangFormat using:
Added option to disable clang-format-based formatting provided by this extension via "C_Cpp.formatting" : "disabled"
I've not tried it.
from vscode-astyle.
Hi pollow,
It seems that currently vscode has no configuration for choosing language code formatting provider, but I notice that the latest installed provider will be the default one.
You can uninstall and install astyle again to fix the problem for now. At the mean time, I'll looking for other solutions, e.g. provide different context menu option or keymap to trigger astyle formatter.
Thank you.
from vscode-astyle.
Thanks for your reply and your great work! I'll try to work around to solve
this problem.
On Mon, Oct 31, 2016, 10:23 PM Chieh Yu [email protected] wrote:
Hi pollow,
It seems that currently vscode has no configuration for choosing language
code formatting provider, but I notice that the latest installed provider
will be the default one.You can uninstall and install astyle again to fix the problem for now. At
the mean time, I'll looking for other solutions, e.g. provide different
context menu option or keymap to trigger astyle formatter.Thank you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZHbgJaoLOflpSaDID_d5K_AjIvz-IWks5q5qKFgaJpZM4KkgU-
.
from vscode-astyle.
Thanks to @BillDenton to provide a good solution for this issue. :)
I studied the VS code API, it's not support dominating formatter for one language. If you have multiple formatter with same match score, the later loaded one would be used.
Reference
from vscode-astyle.
I don't think the disable works in C++/C extension. I've reported an issue microsoft/vscode-cpptools#469. So far I haven't managed to get Astyle formatting even after disabling the whole of the C++/C extension.
from vscode-astyle.
I was using the wrong way of disabling CLangFormat. It should be:
"C_Cpp.formatting": "disabled",
Now just got to get some Astyle options that I'm happy with!
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"
- Support ${workspaceRoot} variable substitution in all options HOT 1
- Allow for use with arbitrary languages HOT 9
- 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.