Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

[request] Implement line-range formatter #228

Closed
boozook opened this issue Jan 9, 2018 · 1 comment
Closed

[request] Implement line-range formatter #228

boozook opened this issue Jan 9, 2018 · 1 comment

Comments

@boozook
Copy link

boozook commented Jan 9, 2018

Please implement line-range formatter. Currently it's not.

How it (should) works:

In the next file demo.rs with content:

struct Foo {x:i8 ,y  :  i8
       }
struct Bar {x:i8 ,y  :  i8}
    
  • select line 6 (with struct Bar {x:i8 ,y : i8})
  • ⌘+P, type Format Selection.
@nrc
Copy link
Member

nrc commented Jan 10, 2018

This is done on the vscode/rls side, but needs some work in rustfmt - see rust-lang/rls#333 for some discussion.

@nrc nrc closed this as completed Jan 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants