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:

0

2 Answers 2

2

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": []
}
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, this workaround is good enough, better than nothing!
2

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

1 Comment

Thanks, let's see how quickly this will be implemented.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.