denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.5k stars 146 forks source link

feat: use Deno to format parts of a document #1122

Open KnorpelSenf opened 5 months ago

KnorpelSenf commented 5 months ago

Problem

I use the vim emulation in VS Code and I would like to indent the current line correctly by typing == in normal mode. However, this would require Deno to be able to format the current line only, rather than formatting the entire document.

image

Solution

I would like the Deno extension to be able to format selections/parts of a document so that it can fix indenting for the current line.

This might require prior adjustments to the LSP/dprint, but I felt like this is the best place to report it.