In SublimeText2 you can press ctrl+/, and all lines, which are fully or partially selected become commented (with # at the beginning line, but after indentation spaces). If all all of these lines are already commented, this command will uncomment selected lines.
It's very useful when you debug your code and need to enable or disable large blocks of code.