#Visual studio shortcuts resharper code#
It actually changes the code itself to be more readable.
#Visual studio shortcuts resharper full#
A full cleanup does more than remove redundant white spaces. (It's a little like going to the carwash and getting a choice of a wash or a wash and a wax!). When you select this feature you are given the option of a full cleanup or just a reformat of the code.
![visual studio shortcuts resharper visual studio shortcuts resharper](https://enterprisecraftsmanship.com/images/2015/2015-03-27-2iTmXQE.gif)
![visual studio shortcuts resharper visual studio shortcuts resharper](https://res.cloudinary.com/practicaldev/image/fetch/s--VoszCLfY--/c_imagga_scale,f_auto,fl_progressive,h_900,q_auto,w_1600/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbc68uhn2qjuc32lho5a.png)
Choosing Tools->Clean Up Code or Ctrl E + Ctrl C, reformats the code and makes it readable. Let's go through a few of these warnings:Īfter refactoring my code, I want to make it look pretty. Clicking on any of the indicators on the vertical bar brings me to the offending code. We have lots of yellow indicators on our indicator bar indicating lots of warnings in our code. A green indicator is a hint, a yellow indicator is a warning, a red indicator is an error (usually a syntax error), and a blue indicator is a suggestion. Code repair with ReSharper can be anything as simple as changing variables and methods to the proper naming convention to making the code safer for use. If you look at the ReSharper indicator to the right of the scrollbar, it shows us potential problems with this class. My project contains a class called BinaryGene used to represent a gene of one of the solutions in binary form. Perfect numbers are numbers whose factors produce a sum equal to the product of the factors. I brought in an old project that implements a probability based incremental learning algorithm (PBIL) to determine perfect numbers. Let's bring up one of my old C# classes and take a look through the eyes of ReSharper. If you think that ReSharper is impressive as a code generator, you should see its code repair capability. The benefits of ReSharper can't be overstated when it comes to productivity. Although my comments may sound exaggerated, I've gotten the same response from my programmer colleagues over and over again. Installing ReSharper is the equivalent of putting on the glasses and realizing you've been handicapped all along.
![visual studio shortcuts resharper visual studio shortcuts resharper](https://images.squarespace-cdn.com/content/v1/58e18ab8db29d6c9b3226511/1611109065743-VVOEKE4T6WUKCZOCY6NQ/zoomshortcut.png)
Then you put on the glasses and you see a new world, vivid and crisp. Another analogy might be going to the eye doctor for a routine visit, unaware that your eyesight has deteriorated because you've adapted to having compromised vision without realizing it. After installing and using ReSharper for Visual Studio, I realized how much more productive I could be: like 3-5 times more productive. In Visual Studio without ReSharper, I was just an ordinary programmer coding projects, unaware of the limits of my productivity. That's the feeling I get when I use ReSharper for Visual Studio -I become the flying dog. Underdog was a fairly ordinary dog until he took a pill that turned him into a flying hero who saved the world from villains. When I was younger(much younger), I used to watch a cartoon called Underdog.