Select your codeblock you want to comment. After this is done press CTRL + 7 and all selected lines of code are commented with #. If you press CTRL + 7 again the # prefixes are removed.
CTRL + 7
#