Bugfix 912735
Smart Indenter was not handling all the cases, where the return is pressed twice after a comment The existing case handles only the case where the caret is immediately followed a token which also happens to be the end of an indent operation. The cases that are added: The premise in these cases is, the user has pressed 2 returns after a comment 1. There are executable code after the caret which also belong to the same indent block as the caret Behavior : Place the caret at the column where the other executable statements of the block are placed. Eg: static void Main(string[] args) { // A // B $$ return; } 2. Inside an initializer block with the previous token being the comma token of the separation list Behavior - Place the caret at the column where the previous argument to the list started Eg: var s = new List<string> { "", "",/*sdfsdfsdfsdf*/ // dfsdfsdfsdfsdf $$ }; (changeset 1276027)
Showing
想要评论请 注册 或 登录