Tag Archives: generation and templates

Different code styles for different code blocks in ReSharper and Rider

In the previous post about the ReSharper and Rider code formatting engine, we saw an overview of new functionality that is available. In this post, it’s time to get our hands dirty and look at a couple of things in … Continue reading

Posted in How-To's | Tagged , , , , , , , , | 6 Comments

Code formatting engine updates in ReSharper and Rider

Over the past few ReSharper releases, we completely rewrote our code formatting engine. By doing this rewrite, we are able to iterate and innovate more rapidly. In the latest ReSharper 2017.3 EAP releases, we have started to build on top of … Continue reading

Posted in How-To's | Tagged , , , , , , , , , | 4 Comments

Generate deconstructors with ReSharper

With C# 7 came language support for deconstructing tuples and other types. ReSharper 2017.3 Early Access Program adds better support for deconstructors, including new inspections and generators. But before diving into how ReSharper can help with writing deconstructors, let’s cover what … Continue reading

Posted in How-To's | Tagged , , , , , , | Leave a comment

C# 7.0 and 7.1 support in ReSharper – Pattern matching with generics

Pattern matching with generics (spec) is another great topic for our blog series about support for C# 7.0 and C# 7.1 in ReSharper (and Rider)! Using pattern matching, we can combine a type check with a cast, removing some language ceremony. Let’s see how ReSharper can … Continue reading

Posted in How-To's | Tagged , , , , , | Leave a comment

C# 7.0 and 7.1 support in ReSharper – Async main

Many developers have been wishing for an async main method to be able to use async/await constructs in console-based applications. The good news is that C# 7.1 introduces support for this (spec)! ReSharper (and Rider) do so, too. Let’s continue our blog series about ReSharper support for C# 7.0 … Continue reading

Posted in How-To's | Tagged , , , , , | Leave a comment

C# 7.0 and 7.1 support in ReSharper – Expression-bodied everything

Today, we continue our blog series on ReSharper support for C# 7.0 and C# 7.1. The previous post touched on throw expressions (spec) and ReSharper’s inspections, quick-fixes and context actions around these language features. Today, let’s talk about expression-bodied methods, properties, local functions, … Continue reading

Posted in How-To's | Tagged , , , , , , , | 2 Comments

C# 7.0 and 7.1 support in ReSharper – Throw expressions

Let’s continue our blog series about ReSharper support for C# 7.0 and C# 7.1! We’ve already blogged about how ReSharper (and Rider) handle out variables, today we’ll look at throw expressions (spec) that are available in C# 7.0. Throw expressions allow us to throw exceptions from … Continue reading

Posted in How-To's | Tagged , , , , , , , | Leave a comment

C# 7.0 and 7.1 support in ReSharper – Out variables

Back in February, we wrote a State of the union about ReSharper C# 7 support, based on ReSharper 2016.3. Since then, a number of improvements have been made, both to C# as well as ReSharper (and Rider, which gets language support updates … Continue reading

Posted in How-To's | Tagged , , , , , , | 3 Comments

Multi-line import completion, code generation improvements in Rider 2017.2

In Rider 2017.2 EAP, we did quite some work on code completion. For example, for CSS, JavaScript and TypeScript as well as .config, .csproj and XML files, more and better suggestions are now available. Multi-line code completion has been improved, … Continue reading

Posted in How-To's | Tagged , , , | 3 Comments

Null checking improvements in ReSharper 2017.2

Null checking is a very common task that ReSharper has always been helping to automate. Since the very first versions, ReSharper users had a whole bunch of context actions and quick-fixes at their disposal, such as Check parameter for null, Assert expression … Continue reading

Posted in How-To's | Tagged , , , , , , | 8 Comments