Update clang format_on save_VS2017 authored by Thomas Vierjahn's avatar Thomas Vierjahn
# Setting up clang-format to format on save in VisualStudio 2017 # Setting up clang-format to format on save in VisualStudio 2017
* **Step 1** ## **Step 1**
Install the *ClangFormat* and *Visual Commander* Extensions for Visual Studio * Install the *ClangFormat* and *Visual Commander* Extensions for Visual Studio
Go to **Tools -> Extensions and Updates** and search for the Extensions under the Online tab. * Go to **Tools -> Extensions and Updates** and search for the Extensions under the Online tab.
An already existing Clang Format Installation outside of Visual Studio is not sufficient; Visual Studio still needs the Extension.
An already existing Clang-Format Installation outside of Visual Studio is not sufficient; Visual Studio still needs the Extension.
* **Step 2** * **Step 2**
Visual Commander allows the user to create Extensions for Visual Studio. Go to the new VCmd tab in Visual Studio and select Extensions. Select **Add** in the Extensions area and **Edit** on the newly created extension. You can give the Extension a name like "clang_on_save", but what's important is making sure the language is set to C#. Copy the following code into the extension: Visual Commander allows the user to create Extensions for Visual Studio. Go to the new VCmd tab in Visual Studio and select Extensions. Select **Add** in the Extensions area and **Edit** on the newly created extension. You can give the Extension a name like "clang_on_save", but what's important is making sure the language is set to C#. Copy the following code into the extension:
... ...
......