Learn how to add a layer. Add evil-commentary as a layer:
Put your cursor on a line, and press g c c:
You can use the same shortcut to uncomment the line.
You can type g c followed by a Vim motion to comment sections of code.
For example, we can comment out three lines with g c 3 j:
You can use v to enter visual mode and select text (hjkl):
Then press g c to toggle comments:
See the documentation for more shortcuts.
Next: How to setup AG (Silver Searcher) to find text in files in Spacemacs on Windows