I wish to set the following rulers only when viewing *.py files. Is that possible?
{ "editor.rulers": [72, 79] } 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] } "editor.rulers": [72, 79] to settings.json, not inside a language-specific tag.[<language>], use VS Code's Preferences: Configure Language Specific Settings command and then select the language from the dropdown.It looks they have recently added support to have different settings for notebooks. Adding the following to my settings.json has done the trick of adding the rulers to my .py files, but removing them from .ipynb, for example.
"[python]": { "editor.rulers": [79, 120] }, "notebook.editorOptionsCustomizations":{ "editor.rulers": [] }