Usually you can configure different rulers for each language in settings.json using something like ["python"]: {"editor.rulers": [120]}. But if you want a shorter/different ruler position for Jupyter notebooks, you have to use the following weird setting since VS Code doesn't consider [notebook] a language:
"editor.rulers": [120],
"notebook.editorOptionsCustomizations": {
"editor.rulers": [79]
}
(see https://stackoverflow.com/questions/71689435/make-vertical-rulers-invisible-in-ipynb-files-in-vs-code)
Unfortunately, Rewrap doesn't seem to be aware of this quirk. With the settings above, the ruler shows at column 79, but Alt+Q wraps at 120.
Usually you can configure different rulers for each language in
settings.jsonusing something like["python"]: {"editor.rulers": [120]}. But if you want a shorter/different ruler position for Jupyter notebooks, you have to use the following weird setting since VS Code doesn't consider[notebook]a language:(see https://stackoverflow.com/questions/71689435/make-vertical-rulers-invisible-in-ipynb-files-in-vs-code)
Unfortunately, Rewrap doesn't seem to be aware of this quirk. With the settings above, the ruler shows at column 79, but Alt+Q wraps at 120.