Open vfp9 opened 2 weeks ago
Which version of X#? And which version of Visual Studio? Over here it works with VS 17.11.5 and X# 2,21.0.3, which will be released soon. It even works when the cursor is on the line and nothing is selected. I am using the menu options "Comment Selection" and "Uncomment Selection"
Visual Studio(Ver 17.11.5) and X# (Ver 2.21.0.3)
By “Select a line of code”, I mean, select a line of code(Just like selecting multiple lines of code), not “cursor is on the line and nothing is selected”.
Can you record a video to show what you're doing?
If I understood correctly:
sometext
/*sometext*/
Select again the full line, including the / / markers and choose uncomment, nothing happens, I assume because the caret is at the very end or very beginning of the line
In order for the text to be actually uncommented, the caret needs to be put inside the block comment and then choose uncomment
Ok, but what do you expect to happen for a line of code like this, where the cursor is positioned at the start of the line
x := Left( /*comment1*/ somevar, /*comment2*/ 10)
Should both comments be uncommented?
The idea behind the current behavior is:
//
or &&
then the whole line is uncommented regardless of where the cursor is located, as long as the cursor is on that line/* ... */
then the block where the cursor is located is uncommentedThis is also what the C# language service does for uncommenting.
To Reproduce Steps to reproduce the behavior: