Visual Studio 2013 introduced a new feature, Code Lens, where it shows you how many times each of your methods are called/referenced, how many unit tests cover the method, and how many are passing. The code lens information appears above the method and below any attributes the method has like so:
If the method has a lot of attributes they can appear separate from the method. As proximity in design implies relationship, the attributes can appear to be associated with something else. This is especially the case if you are accustomed to not having line breaks separating methods. Is there anyway to move the code lens feature so it appears above the method attributes?
Go to Tools > Options > Text Editor > All Languages > CodeLens. When the indicators are turned on, you can also open the CodeLens options from the indicators.
Visual Studio maintains a history of file changes. Modified files are marked with a red check mark in the Solution Explorer. You can compare your changes with the original file by right-clicking on the file name and selecting Compare with Unmodified. The Diff window shows new code in green and removed code in red.
This is currently not supported. But has been requested from Microsoft. See the connect report below.
http://connect.microsoft.com/VisualStudio/feedback/details/810015/display-codelens-above-attributes-if-any-present
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With