Coder Social home page Coder Social logo

bn_astyle's Introduction

BN_Astyle

An extension for Visual Studio 2022 to format C/C++ documents using Artistic Style engine.

Based on (and uses code snippets from): astyle-extension by lukamicoder

More info on Artistic Style at http://astyle.sourceforge.net/

Supported Visual Studio editions:

Visual Studio 2022 Community
Visual Studio 2022 Professional
Visual Studio 2022 Enterprise

Features:

  1. Ability to set astyle arguments Tools -> Options -> BN_Astyle
  2. Optional automatic format on save Tools -> Options -> BN_Astyle
  3. Command to format current C/C++ document Edit -> Format Document (BN_Astyle)

Using with Cataclysm Bright Nights project:

Installing from Releases

  1. Download BN_Astyle.zip from Releases page
  2. Unpack anywhere
  3. Double click .vsix to install. Visual Studio installer should guide you from there

Installing from source

  1. Check out the repository
  2. Open BN_Astyle.sln
  3. Install any workloads Visual Studio prompts you to (.NET framework 4.8 and Extension SDK)
  4. Select Release / Any CPU configuation
  5. Build Solution
  6. If there were no issues, resulting .vsix should be in BN_Astyle\bin\Release. Double click to install

Configuring

  1. Go to Tools -> Options -> BN_Astyle
  2. Enable automatic Format on save (or don't, depends on how you like it)
  3. In BN repository, open msvc-full-features\AStyleExtension-Cataclysm-DDA.cfg with any text editor, copy contents of CppCommandLine entry and paste into Formatting options
  4. Close options window by pressing Ok in bottom-right corner

bn_astyle's People

Contributors

olanti-p avatar

Watchers

 avatar

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.