GithubHelp home page GithubHelp logo

Comments (6)

BillDenton avatar BillDenton commented on August 26, 2024 1

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.

welkineins avatar welkineins commented on August 26, 2024

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.

pollow avatar pollow commented on August 26, 2024

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.

welkineins avatar welkineins commented on August 26, 2024

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.

BillDenton avatar BillDenton commented on August 26, 2024

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.

BillDenton avatar BillDenton commented on August 26, 2024

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)

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.