microsoft / microsoft/vscode-black-formatter
Support for format on type
@karthiknadig is already working on this.
Since Mar 20, 2024.
- Dominant language
- Python
- Stars
- 196
- Forks
- 49
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 7
Description
I hope this message finds you well. I am writing to express a feature request for the Python extension that I believe would significantly enhance the coding experience for users like myself.
Currently, I find myself frequently formatting my code using the Ctrl+Shift+I shortcut, which, although effective, interrupts the flow of coding and feels somewhat cumbersome. Drawing inspiration from features available in Visual Studio, I would like to propose the implementation of automatic code formatting upon pressing the Enter key.
The functionality I envision is straightforward: when a user presses Enter to move to a new line, the Python extension would automatically format the preceding line of code according to the defined style guidelines or user preferences.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.