Open shekharnwagh opened 1 year ago
Certainly a needed feature 👍
Also neovim has it, you use = to format the selection, very handy feature which is missing?
Also neovim has it, you use = to format the selection, very handy feature which is missing?
@sangelxyz , I have this in my keymap.json
to emulate what I'm used to in nvim:
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"space =": "editor::Format",
}
}
but that formats the entire file as far as I know and not just the visual block like in vim unfortunately.
Check for existing issues
Describe the feature
VSCode/IntelliJ has the option to select a block of code and format only that instead of the whole file. This would be helpful if you only want to reformat newly added/altered code instead of the whole file to avoid creating big diffs.
If applicable, add mockups / screenshots to help present your vision of the feature