[231] can't type if statement
I'm using R# intellisense with case sensitive completion off.
On a new code line if I type,
if[tab]
I get IFormatProvider from the intellisense list.
If I type,
if(
I get IFormatProvider()
I am also experiencing problems with intellisense and code completion. For example, I have 'se' as my short cut for string.Empty When I type 'se' and press I get SearchOption. The tooltip that prompts you to expand by pressing tab appears but pressing tab just selects the item in Intellisense.
Please sign in to leave a comment.
Found the issue. I had 'display members in completion lists' to "Normal members". Setting to "All Members" did the trick. Guess I expected 'if' and other keywords and code completion keywords to be "Normal" within R# intellisense. What's strange is that setting to Normal and Advanced Members doesn't fix the issue either.
There is definitely a naming issue here (or at least it wasn't clear to me until I messed around with it).
OK, I spoke too soon. Even with setting to "All Members", the code completion keyword issue I described above still exists (e.g., can't type 'se' and get my string.empty completion). I can type 'if' now though.
Guess I expected 'if' and other keywords and code completion keywords to be "Normal" within R# intellisense.
Wow, I've had the same complaint (keywords are missing from code completion list) forever but I never thought that would be the solution.
I cannot reproduce this behaviour. Is it reproducable only in some specific
context or anywhere?
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Repro Steps:
0) Ensure you have user template 'string.Empty$END$' with shortcut of se in your User Templates section
1) Clean start of VS with R# 231
2) Create new Windows Application
3) Add button to default form and create event handler
4) Type the following 'if (this.Name == se'
5) Wait for tooltip to appear to show (see attached screenshot - code_template_not_working.jpg)
6) Press tab - 'sender' is expanded from intellisense (see attached screenshot - code_template_not_working_2.jpg)
Attachment(s):
code_template_not_working.jpg
code_template_not_working_2.jpg