How can I select all (ctrl + A) and uncomment? It only lets me format when I Alt + Enter and there is no "Uncomment" option if I select all.
Hello all,
Occasionally I want to just completely comment out a script when testing or whatever, so I will just hit Ctrl + A and then Ctrl + K + C to comment out all or large areas of code, but nearly always if I hit Ctrl + A again to select it all and then hit Alt + Enter to try and uncomment, it always has the little broom icon instead of the Hammer, so I can't uncomment it all at once. I end uphaving to click at the very top and drag my way all the way down to the end of the code and stop usually a little before the end so that there is still a hammer icon to the left before it changes to the broom.
Is there another way to force an uncomment action on the highlighted text so that I can select all and uncomment? I tried to use the Search Anywhere for "Uncomment" but all it did was take the entire already commented out code and added another layer of // to all of it instead of uncommenting.
Thanks,
-MH
Please sign in to leave a comment.
use Ctrl + K + C again, I prefer the vs+resharper behaviour where you can do consecutive comments/uncomments but I havn't found a way to do that in rider yet...
Well, I feel like an idiot, lol. Thanks for that. It has been weeks I have had to deal with it not knowing it was the same key combo to undo it. Everything I saw as far as commands shows it was Alt + Enter + Enter.
Thanks!
-MH
Are you using a plugin to give Visual Studio bindings to your Intellij? I just use Ctrl + / and have never had any problems.
I am sorry, I forgot to clarify, I am using Rider. The prior reply from Bas Smit seems to have got me all taken care of!