Skip to content

Refactoring Code

Igor Rončević edited this page Nov 16, 2020 · 3 revisions

At the moment Sharpen does not have any refactorings implemented. Refactorings are planned and will be implemented in the upcoming versions.

Meanwhile, for some of the Sharpen's recommendations, you can use built-in Visual Studio code fixes. To see if a corresponding code fixes exist, go to the part of the code the recommendation is pointing on, and look for the options given by the Visual Studio Bulb.

For example, for the Sharpen's suggestion "Use expression body for get-only properties" there is a corresponding built-in Visual Studio code fix, as shown on the image below.

Visual Studio Bulb - Use expression body for properties

Here are some additional examples of Sharpen's recommendations that have corresponding code fixes comming with Visual Studio.

Sharpen's recommendations that have corresponding code fixes in Visual Studio