How do I remove commented code?
How do I remove commented code?
To comment or remove comments from a block of code:
- In the C/C++ editor, highlight a section of code to comment or remove comments. For a single line, position your cursor anywhere on that line.
- Right-click and select Comment or Uncomment.
How do I remove a redundancy code?
Go to the cleanup profiles settings page: Code Editing | Code Cleanup | Profiles. Create a new profile as described in the Create a new custom cleanup profile section. In the Selected profile settings section for the new profile, tick the Remove code redundancies checkbox.
How do you do a code cleanup?
You can also run code cleanup across your entire project or solution. Right-click on the project or solution name in Solution Explorer, select Analyze and Code Cleanup, and then select Run Code Cleanup.
How do you comment on ReSharper?
Comment and uncomment with block comments If there is a selection, ReSharper will add block comment marks in the beginning and in the end of the selection. The caret is moved to the end of the block comment. An alternative way to comment any block of code is to select it, press Alt+Enter and choose Comment selection.
How to comment and uncomment code with ReSharper?
With ReSharper, a single keystroke is enough to comment or uncomment code. To select a logical code block, press Ctrl+W one or more times; to select the current declaration, press Ctrl+Shift+[.. To comment or uncomment code with line comment, press Ctrl+/ or choose from the main menu.
How to comment and uncomment code with line comment?
With ReSharper, a single keystroke is enough to comment or uncomment code. To select a logical code block, press Ctrl+Alt+Right one or more times; to select the current declaration, press Ctrl+Shift+ [ .. To comment or uncomment code with line comment, press Ctrl+Alt+/ or choose ReSharper | Edit | Comment with Line Comment from the main menu
How to find unused private methods with ReSharper?
1. Go to bottom-right corner of visual studio, right click the circle and click “Analyze Errors in Solution” 2. You should see a message that solution-wide analysis could take a while, but don’t be scared, for me analysis of a big project (more than 60 000 statements) took less than 2 minutes. 3.