jetbrains-update, news
JetBrains | Auto-Detect Code Format Rules With Rider 2020.3
As developers, we’re in a neverending struggle to find a balance between style and substance. The tabs vs. spaces argument even found its way into pop culture during Season 3 of HBO’s Silicon Valley.
We understand that style can be a point of debate within teams. While the codebase’s style might not impact the runtime execution of applications, it can have measurable impacts on team productivity.
With Rider’s latest release, we will empower developers to auto-detect and configure their coding style preferences in a few simple steps, and maybe, avoid a few heated debates on style.
Let’s take a look at these new options.
Auto-Detect Formatting Rules
The new “auto-detect formatting rules” feature can adjust suggestions and naming conventions based on the current solution’s existing code. The auto-detect capability is especially helpful for development teams inheriting and maintaining legacy codebases.
We can detect the code formatting rules for our selected programming language from the Preferences | Code Style dialog. Here, let’s ask Rider to auto-detect the coding style for C#.

The auto-detect feature may take some time, depending on the size of the project. In this particular case, Rider was able to detect the formatting settings for a simple console app almost instantaneously.

We can modify the detected settings before saving them to several locations and formats, including the familiar .editorconfig format.

Quick-Fix Code Format Settings
Besides having Rider auto-detect our coding style from the entire solution, we can also detect settings by highlighting a particular code block.
There are two key advantages to using the quick-fix menu when configuring our formatting options:
- We can tweak formatting settings, immediately seeing the effect on code in the editor. A helpful feature in those moments when we’re not sure what a description means. (“Preview formatting” should be checked to enable the behaviour).
- The configure formatting option allows us to narrow down the settings that have a direct effect on our code block. With less noise, we can see the settings important to us.
We can configure the current block using the same quick-fix formatting menu.

From the same menu, we can detect formatting settings to jump-start our configuration work.

These quick-fix formatting changes aren’t limited to C# development. We can invoke the same adjust code style settings quick-fix when working with frontend programming languages like JavaScript, HTML, and CSS.
Here’s the quick-fix option for a css file.

And here we can adjust JavaScript formatting in a .js file.

Controlling the code formatting rules across our entire technology stack has never been easier.
Conclusion
There are many more code formatting options available to Rider users, all previously available in ReSharper. To understand more of these options in detail, we recommend revisiting some of JetBrains previous posts.
Give Rider 2020.3 EAP a try!
Contact us to know more information on JetBrains solutions.
LOGON is a pan-asian company operating in China, Hong Kong (HK), India, Singapore, Malaysia, Indonesia, Vietnam, Philippines and Thailand. LOGON has local dedicated trained product specialists in Hong Kong, Guangzhou, Kuala Lumpur, Mumbai and Bangalore. LOGON acts both as value added reseller and sole distributor for award winning software solutions. Customers can buy new licenses, purchase upgrades and renewals from any of our local offices. Contact us for first line support during evaluations, PoCs. We offer best practices consulting services and classroom & online training. Check our site for latest offers, special discounts, bundle deals, etc..
All of the JetBrains Toolbox 2020.3 releases are now published. As always, we suggest you update your tools with JetBrains free Toolbox App.
In this release, you will find the following exciting new features in their IntelliJ-based products:
- Git staging support
- Code With Me plugin for collaborative development (available in Rider and DataGrip next year)
- Reworked Welcome screen
- Interactive hints and inline watches in debugger
- Better editor tab management
Improved Markdown editing and preview
Check out the summaries below to learn more about what new features you can look forward to in your favorite tool.

IntelliJ IDEA 2020.3 features interactive hints in the debugger, improves support for Java 15, Spring, and other frameworks, and now officially supports the Lombok plugin. It also introduces a variety of UX improvements, such as the ability to drag and drop tabs, and other new features.

WebStorm 2020.3 comes with Tailwind CSS support, new features for faster navigation, improvements for JavaScript and TypeScript, and many other improvements.

Rider 2020.3 comes with long-awaited support for .NET 5, C# 9, and F# 5. We’ve also introduced new features such as the Immediate window in the debugger, Project Dependency Diagrams, Push-to-Hint, and language support for the Avalonia UI framework. Burst analysis and shader support have been updated for Unity developers, too.

PyCharm 2020.3 introduces a variety of improvements to increase your productivity and code quality. Cloned or imported projects can now be configured in PyCharm 2020.3 with one click. If the project contains a requirements.txt, setup.py, environment.yml, or pipfile, PyCharm will set up a proper environment for you. Have an unresolved React component in your code? PyCharm now creates the relevant code construct for you.

RubyMine 2020.3 features improved tab management in the editor, and many more new features for the latest version of Ruby and Rails. There are also new features and improvements for the debugger, terminal, and database tools.

ReSharper 2020.3 comes with support for the latest .NET 5 and C# 9 language updates, Dynamic Program Analysis, a new “Push-to-Hint” visibility mode, and Avalonia UI framework support. **ReSharper C++** now provides seamless integration with UnrealHeaderTool and brings control-flow analysis inspections to HLSL shader files.

AppCode 2020.3 is here with Swift localization support, new inspections and intentions, SourceKit-based **Go to Declaration**, XCFrameworks support, improved refactorings, new debugger features, and more!

DataGrip 2020.3 includes SQL for MongoDB, Couchbase support, enhancements in the separate editor for values, and new data extractors.

PhpStorm 2020.3 introduces support for PHP 8, PHPStan, Psalm, Tailwind CSS, Xdebug 3. All the new features and improvements from WebStorm 2020.3 are also available in PhpStorm 2020.3.

GoLand 2020.3: explore the goroutines dump, stop a debug session using a Go Remote configuration, run and navigate to individual table tests, and get more from the expanded support for the Testify test framework. You will also find many new code editing features, UI improvements, and many new features for web development and working with databases.
Contact us to know more information on JetBrains solutions.
LOGON is a pan-asian company operating in China, Hong Kong (HK), India, Singapore, Malaysia, Indonesia, Vietnam, Philippines and Thailand. LOGON has local dedicated trained product specialists in Hong Kong, Guangzhou, Kuala Lumpur, Mumbai and Bangalore. LOGON acts both as value added reseller and sole distributor for award winning software solutions. Customers can buy new licenses, purchase upgrades and renewals from any of our local offices. Contact us for first line support during evaluations, PoCs. We offer best practices consulting services and classroom & online training. Check our site for latest offers, special discounts, bundle deals, etc..

