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.
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 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.
The JustCode team
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.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.