-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't format Python documents #24653
Comments
We don't control the marketplace results, unfortunately we don't even have a way to filter this. The query itself comes from VS Code core. Since python has several formatting options, you need to search for the formatter you want to use like @sandy081 Is there a way to contribute to the query, or provide suggestions for these cases? |
@karthiknadig Can you please explain me the user flow and what results are you expecting to see extensions view? |
If you install just Python Extension, then click on format document, you get a dialog that says please install a formatter from the extension store. This opens the extension view and shows Python extension, and not the formatting extensions like |
I assume this dialog is shown by the python extension and the buttons in the dialog are also from python extension. If so, then I believe you would be using this command |
@sandy081 It is this dialog, which is shown by Core. You get this dialog by triggering formatting from the command palette. |
@karthiknadig cc @jrieken |
Type: Bug
Open a Python file
Try to Format
Get popup saying "There is no formatter installed"
Click "Install formatter..."
Click the top result.
That's this extension... which I already have installed... but it doesn't work.
Expected behavior:
Extension version: 2024.22.0
VS Code version: Code 1.94.2 (Universal) (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Darwin arm64 22.3.0
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: