Autocomplete + { doesn't work like in VS
Answered
In my conversion from VS 2015 (with resharper) to Rider, one annoying thing I keep running into is how using the opening brace does not do an auto complete.
Say I have: public class TestClass { }
Then in another area with that class in scope I type: return new Te
In visual studio (with R#) I select the name "TestClass" in intellisense (to finish the "Te") I can press enter and it finished it with "return new TestClass();". Rider does that as well, but what rider doesn't do is instead of pressing enter In VS I can use an opening brace, which auto-finishes it with "return new TestClass{ };".
Are there any plans to add this into Rider, or is there any setting to control this?
Please sign in to leave a comment.
Personally I'd like the ability to turn off all automatic insertion of parens or other characters on completion.
Matthew In Rider 2018.1 there is a setting for such behavior. To configure it, go to "File | Settings | Editor | General | Code Completion" and enable "Insert selected variant by typing dot, space, etc."
Paul Since Rider 2018.2 one can turn off automatic insertion of parenthesis after completion on "File | Settings | Editor | General | Code Completion" settings page. There are three possible options: don't insert/insert only opening/insert both.
Hope this helps.
Julia, I am on 2018.1 and "Insert selected variant by typing dot, space, etc" enabled and the situation still exists.
Matthew,
Do you try to autocomplete with a curly '{' or a round '(' bracket?
Curly bracket, which is what this ticket was originally created for.
Matthew,
Indeed, it doesn't work. Thanks for drawing my attention to it! I've created an issue for the responsible developer, please watch it for updates: https://youtrack.jetbrains.com/issue/RIDER-17848
Appreciate it!