2

In my settings.json, I have

    "[python]": {
    "editor.rulers": [
        79,
        120
    ],
    "editor.defaultFormatter": "ms-python.python"
},

but these rulers also appear in all my Jupyter Notebooks, which is not desired.

rulers in vertical notebook

How can I make these exempt from showing the rulers?

PS: In the main articles regarding rulers, nothing like that has been answered till now:

Andreas L.
  • 3,239
  • 5
  • 26
  • 65

2 Answers2

2

I am afraid it's impossible for now. I had submitted a feature request on GitHub.

Steven-MSFT
  • 7,438
  • 1
  • 5
  • 13
1

It looks like this has finally been implemented. 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": []
}
ErrorJordan
  • 611
  • 5
  • 15