Skip to content

Conversation

@Uupis
Copy link

@Uupis Uupis commented Aug 31, 2018

When using snippets, Sublime Text expands the tabs based on user preferences. This way users who use 2-space indentation will get 2 spaces when using a snippet, users who use 4-space indentation will get 4 spaces, and users who use tabs will get tabs.

I realize that the vast majority of Rust code seems to be 4-space indented, and that looks to be the encouraged style, but, for my own code, I prefer 2-space indentation, and I don't think this change necessarily goes against the 4-space style. The only imposition for future changes is that multi-line indented snippets need to be saved with tab characters.

When using snippets, Sublime Text expands the tabs based on
user preferences. This way users who use 2-space indentation
will get 2 spaces when using a snippet, users who use 4-space
indentation will get 4 spaces, and users who use tabs will get tabs.
@ehuss
Copy link

ehuss commented Sep 5, 2018

bors r+

bors bot added a commit that referenced this pull request Sep 5, 2018
342: Snippets: change hard-coded 4 spaces to tab charaters r=ehuss a=Uupis

When using snippets, Sublime Text expands the tabs based on user preferences. This way users who use 2-space indentation will get 2 spaces when using a snippet, users who use 4-space indentation will get 4 spaces, and users who use tabs will get tabs. 

I realize that the vast majority of Rust code seems to be 4-space indented, and that looks to be the encouraged style, but, for my own code, I prefer 2-space indentation, and I don't think this change necessarily goes against the 4-space style. The only imposition for future changes is that multi-line indented snippets need to be saved with tab characters.

Co-authored-by: Uupis <uupis@icloud.com>
@bors
Copy link

bors bot commented Sep 5, 2018

Build succeeded

@bors bors bot merged commit 0c1e7ab into rust-lang:master Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants