Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix #921: Add smart indent support #994
Smart indent is kind of really hard to set up in Ionide because we are working on a language that is indentation based.
In other languages, it's really easy to determine the block. Because in general, you can identify them with opening and closing symbols:
When working on the F# smart indent, I took the decision to make it minimal and auto-indent where it as the best chances to be "correct".
For example, when creating a
When I compare my experience with or without smart indent it's pretty similar when creating code. Before smart-indent, I had to indent myself to the right.
In your gif, I am not sure why
Perhaps this is a bug/limitation on their side?
Also, I didn't use yet smart-indent on a daily I only tested it when creating the feature but thanks for the reminder I will activate it :) And will see if we can improve things or if there are bugs etc. :)