Skip to content
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 only the selected code #18842

Closed
stevemessick opened this issue May 15, 2014 · 5 comments
Closed

Format only the selected code #18842

stevemessick opened this issue May 15, 2014 · 5 comments
Assignees
Labels
type-enhancement A request for a change that isn't a bug

Comments

@stevemessick
Copy link
Contributor

I wish I had the ability to format just a selection, not the whole file.

For example, I'm in the middle of some large file, adding a bit of new code, or re-arranging a small bit of existing code. It's formatting is messy. I wish I could use the formatter to clean it up, but if I do that it will change several hundred other places in the code, some of which I might not agree with, and even if I agree with all of them I don't want to send my change to review mixed up with hundreds of formatting changes. So I either don't use the formatter, or I take my code, paste it into a new file, format it there, and paste it back again. Which doesn't always work.

Alan Knight
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.4.0.edge_036225 (2014-05-15)
OS: Mac OS X - x86_64 (10.9.2)
JVM: 1.6.0_65

projects: 5

open dart files: 47

auto-run pub: false
localhost resolves to: 127.0.0.1
mem max/total/free: 1983 / 628 / 234 MB
thread count: 41
index: 1160528 relationships in 226156 keys in 1000 sources

SDK installed: true
Dartium installed: true

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the 1.5 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@munificent
Copy link
Member

dart-lang/dart_style#92


Added MovedToGithub label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/dart_style#349.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

6 participants