Telerik blogs

In one of our previous blog posts, covering JustCode formatter and code style options, we began looking at one of JustCode's great code formatting features. In this post we will make a comparison to the Visual Studio formatter and give a more detailed explanation of JustCode Code Style settings.

JustCode formatter compared to VS formatter

The JustCode formatter can be executed for the whole solution, a project, all files in a given directory, a single file, and user selection. It is also used internally when JustCode generates code for you. Code Cleaner, another great feature of JustCode, has a cleaning step to execute the formatter. Typing Assistance, when enabled, can also be configured to format the user code.

The VS formatter can only be executed for the current document, user selection, and when pasting code into the editor.

The JustCode formatter can format documents written in C#, CSS, JavaScript, VB.NET, Razor, XML, XAML, HTML.

The Visual Studio formatter supports C#, C++, CSS, Basic (VB.NET), HTML, JavaScript, XML and XAML, but it is less configurable and lacks many features. For example, the Basic settings in Visual Studio has only one check-box for formatting named “Pretty listing (reformatting) of code”.


The JustCode formatter has rich set of configuration options. You can find its options in the Code Style section of the JustCode options dialog:

Note: You can also configure JustCode to share the Code Style options per solution. To do that, go to the Options Sharing page in the Options.

As you can see in the image above, JustCode has lots of settings for configuring its formatter. For example, the Visual Studio formatter also has settings to customize indentations, new lines, spacing and wrapping. However, if you take a look at VS formatter settings and compare them to the JustCode Code Style options, you will see that JustCode is much more customizable and its formatter makes your code better looking. Also JustCode has extended formatter capabilities to support handling of the blank lines in code, code reordering, using directives sorting. We will explain in details these additional settings in another blog post, but as a quick teaser we’ll mention that JustCode formatter can be configured (using the code reordering) to reorder the class members in the following order: fields, properties, constructor, methods, etc.

Although we have so many benefits for you in the JustCode formatter, we'd love if you help us make it even better. You can write us in our forum or support.

Happy Coding!

The JustCode team

About the Author

Borislav Kulov

 he has more than 10 years of experience in the development field. Borislav is a motorcycle enthusiast and in his free time he enjoys swimming and other sports.


Comments are disabled in preview mode.