Formatting selection in a qmd file formats the whole cell. How to avoid? #9223
-
Hope this is a good place to ask. If I create a python cell in a qmd document in Positron, insert a few lines of code, select some code and run "Format selection" either via the command menu using "Ctrl+Shift+P", or the direct shortcut, the whole cell is formatted instead of just my selection. Using the default included Ruff formatter with default settings. Is this expected? Can I have only the selection formatted? Positron Version: 2025.06.0 build 167 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! This is great place to ask, thanks for letting us know about this! I am seeing the same behavior as you in Quarto files, but other files such as Python or R act as expected for |
Beta Was this translation helpful? Give feedback.
Hi there! This is great place to ask, thanks for letting us know about this! I am seeing the same behavior as you in Quarto files, but other files such as Python or R act as expected for
Format Selection
. That leads me to believe this is a bug in the Quarto extension, and it looks like others have experienced this as well, like in this issue quarto-dev/quarto#656. Feel free to add your context to that issue or give it a 👍!