Is there a way to deactivate lines of code in Visual studio without deleting them?

Viewed 29

Is there a way to deactivate several lines of code in visual studio?

I'm currently typing // in from of each line when I need to deactivate a segment of code (for debugging etc), but it gets tiresome.

1 Answers
File > Preferences > Keyboard shortcuts

Search for Toggle Line Comment And edit the key combintion and choose whatever you want to perform that action

Related