-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
Format on save no longer working if more than 1 formatter is available #70965
Comments
(Experimental duplicate detection) |
Related discussion here: #41882 (comment) |
/duplicate of #41882 (comment) |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
@eldair Because format on save is without UI we cannot show a picker. We can continue to pick some formatter but IMO it would be highly inconsistent. We are open for suggestions but the goal is that users configure formatters so that only one is active per file |
fyi - I have pushed a change that picks the first formatter for format on save. when this happens a status bar message is being printed, telling you which formatter has been picked |
Hi, Thank for the info and the update. I understand what the issue is, I thought there would be an option to select a formatter per language vs disable on extension which offer it as side effect (if a sole purpose of an extension is formatting than I agree it should be disabled if not in use). |
Issue Type: Bug
Format on save no longer working if more than 1 formatter is available.
Running format document command gives a list of formatters and by selecting the one I want it works. Is there some new option for defining default formatter?
VS Code version: Code - Insiders 1.33.0-insider (9474154, 2019-03-22T06:18:30.063Z)
OS version: Windows_NT x64 10.0.18362
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (34)
(7 theme extensions excluded)
The text was updated successfully, but these errors were encountered: