mutian / Sublime-CSS-Format

CSS Formatting for Sublime Text
http://mutian.github.io/Sublime-CSS-Format/
MIT License
98 stars 27 forks source link

format_on_save moves screen / cursor to beginning #29

Open hyperknot opened 9 years ago

hyperknot commented 9 years ago

I love this plugin, but this issue is really annoying. The format on save is a perfect idea, and it is implemented without this behaviour in other plugins, but in CSS Format it has this bug.

Whenever I save, the screen is moved to the beginning and the cursor is moved as well. This makes it almost impossible to work on longer files.

I don't know how is it solved in other plugins technically, but it is definitely not a problem in all plugins.

mutian commented 9 years ago

This is indeed a problem. I did not consider the cursor position at the beginning of formatter designing, and now there is a great difficult to add this feature, I need some time to re-design the core code. Thank you for your support!