roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Missing space character in auto completed new statement for a C# array

Open vsfeedback opened this issue 3 years ago • 0 comments

This issue has been moved from a ticket on Developer Community.


When entering the following code in a C# code file: double[] x = new the expected dropdown with possible types suggesting 'double' appears, when hitting the space bar to add a white space after 'new'. But if you continue the input by selecting 'double' (for example via the 'down' key) and proceed with typing '[' to enter the size of the new array, the editor will remove the white space between 'new' and 'double' turning the code into: double[] x = newdouble[ If the selection 'double' from the dropdown is confirmed (pressing enter or tab) before entering '[' the editor behaves as expected.


Original Comments

Feedback Bot on 12/15/2022, 00:50 AM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Dec 15 '22 16:12 vsfeedback