autocomplete within string interpolation

Im aware doing any autocomplete between quotation marks would inherently be non ideal.
BUT… i feel when using string interpolation, it is so common to insert a variable requiring an open and close bracket, that it would be quite advantageous actually.

I know im likely just going to need to make a feature request, but first Ill ask if there is anyway current way to do this that is already built in.

Please advise

1
5 comments

Hello,

Sorry for the delay in responding.

Could you please provide some code sample demonstrating the request? In general, autocompletion should work inside string interpolation.

Thank you.

0

Sorry I realize i used incorrect terminology.
I did not mean ‘Autocomplete’, I meant ‘Automatic brace completion’

So when enabled in Visual Studio Options Menu:

 

When attempting to insert brace inside of string interpolation

Here you see the opening brace does no automatically insert the option for the closing brace, as it would be outside of string interpolation

0

Hi, 

the setting you've specified is relevant to VS behavior not to ReSharper one.

Could you please let me know which completion is selected in ReSharper | Options | Environment | IntelliSense | General?

Thank you.

0

@Angelina Elycheva 
Sorry this request got lost.  

0

I solved this issue enabling this setting in Options > Environment > Behavior:

 

0

Please sign in to leave a comment.