Skip to content

Rewrap ignores custom rulers in Jupyter notebooks #422

@maxkapur

Description

@maxkapur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions