How to add a character at the begining of multiples selected lines
<p>I'm coding some python files with sublime and I'd like to comment multiple selected lines which means putting the character '#' at the beginning of each selected line. Is it possible to create a such shortcut-key Binding on sublime to do that ?</p>

<p>Thanks
Vincent</p>

<p>To comment code with sublime text3 you can use the existing shortcut, which is bound to <code>Ctrl-/</code></p>

<p>If you want to change that shortcut, you can edit your keyboard user settings and add this line:</p>

<p><code>{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }</code></p>

<p>In the previous line you can see how that command would be bound to <code>ctrl+7</code></p>

python sublimetext