Skip to content

Visual studio brace completion is a bit overzealous #13457

@Vilx2

Description

@Vilx2

First world problems. 😃

TypeScript Version: 2.1.4.0
Visual Studio Version: Community 2015, 14.0.25431.01 Update 3
Code

for ( let i = 0; i < arr.length; i++ )

Expected behavior:
You can just type the whole line in one breath.

Actual behavior:
When typing this line the brace completion feature also tries to complete the angle bracket, resulting at one point in code like this:

for ( let i = 0; i <>

This is a bit annoying, since the other bracket now needs to be deleted. The same thing happens when trying to type anything with a "less than" comparison involved.

I don't know if proper context awareness is feasible for bracket completion, but perhaps the auto completion can be skipped for angle brackets? Or maybe it can be a separate setting for people with different tastes. I find that in my code I use comparisons more often that casts or generics, so the auto completion for angle brackets is doing more harm than good. But I like it for other kinds of brackets and strings, so the net gain is positive.

Metadata

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions