Skip to content

Auto format code when saving the python file instead of notebook #211

@bbo2adwuff

Description

@bbo2adwuff

Checklist prior to opening an issue

  • I have followed fully the installation steps laid out in the documentation site.
  • I have restarted jupyterlab.
  • I have read the FAQ section in the documentation site.

Describe the feature request
Auto format code when saving a notebook works like a charm since the merge of #195

So this is rather a feature request, but when I open a .py file in JupyterLab it would be great to also have the formatOnSave option.

Do you think along the following lines it would be possible to also use the formatter for the py file editor?
https://github.com/ryantam626/jupyterlab_code_formatter/blob/ac5fbd1e2d0b3f031763743e53558dba74d7380a/src/index.ts#L107-L114

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions