I wish to set the following rulers only when viewing *.py files. Is that possible?
{
"editor.rulers": [72, 79]
}
In VSCode, go 'Code -> Preferences -> Settings' and search for "python formatting black args". A few notes about line lengths in Python: PEP8 recommends a line length of 79 characters (72 for docstrings) Black sets line lengths to 88 characters by default.
Keyboard shortcut for vertical block selection: To select code block vertically in your visual studio code, use Shift + Alt and then use the mouse to select lines vertically, from top-left to bottom-right.
As of version 1.9, Language specific settings was introduced. This means that you can now use the following configuration to achieve what you want:
"[python]": {
"editor.rulers": [72, 79]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With