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

Automatically indent code when appropriate #43

Open
ramon-rocha opened this issue May 17, 2013 · 5 comments
Open

Automatically indent code when appropriate #43

ramon-rocha opened this issue May 17, 2013 · 5 comments

Comments

@ramon-rocha
Copy link
Owner Author

Lately in MD 4.1 I am seeing a mix of tabs and spaces when hitting Enter which is super annoying. This needs to be addressed.

@ramon-rocha
Copy link
Owner Author

Okay, in Preferences > Text Editor > Behavior you can change Indentation mode from "Smart" to "Automatic" which seems to be giving me better behavior. Tabs stay tabs and I don't need to backspace out any space characters and re-indent every line. I'm not sure how "Smart" is supposed to behave but it's not very nice when writing Cobra code.

@ramon-rocha
Copy link
Owner Author

As of this commit: mono/monodevelop@cedabbb

both "Smart" and "Auto" will now indent using spaces even if the rest of the file is using tabs.

Dang...

@charles-esterbrook
Copy link
Contributor

Nooooooooooooo!!!

@ramon-rocha
Copy link
Owner Author

This is super annoying. I'm going to fix it.

ramon-rocha added a commit that referenced this issue Apr 5, 2014
Progress towards addressing issue #43

Does not automatically indent code, but does respect tabs-to-spaces
setting.

Recommended setting indent mode to "Auto" or "Smart" and then not
checking "Trim trailing whitespace".  Not very robust but at least not
annoying when trying to indent anymore :)
@ramon-rocha ramon-rocha modified the milestones: 0.7, 0.6 May 10, 2014
@ramon-rocha ramon-rocha removed this from the 0.6 milestone Jun 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants