fortinmike / XcodeBoost

An Xcode plugin that aims to make altering and inspecting code quick and easy.
MIT License
817 stars 86 forks source link

Insert a blank line and move cursor to correct indented location ready to type #43

Open Fred-J opened 8 years ago

Fred-J commented 8 years ago

I wish there is such a feature where Shift + Enter would insert a new blank line under the current line regardless of where the cursor currently located and moves the cursor to the beginning of this newly inserted line in the correct indentation ready to type the to-be-inserted-code line.

fortinmike commented 8 years ago

Nice idea, @samjesse! That wouldn't bee too hard to implement, too.

Feel free to submit a pull request; there are a few examples of text manipulation in the plugin's source, so if you have some time you (or someone else) could easily implement the feature.

Otherwise, I'm going to keep this in the to-do list.