Visual Studio 2015 fixing not working as expected

In Visual Studio Ultimate 2013, I could write:

public void Foo()  

      

And then write left shape + enter and I got:

public void Foo()  
{  
  | <- My cursor position  
}  

      

But in Visual Studio Community 2015, if I do it too quickly, I get:

public void Foo() { }  
| <- My cursor position

      

I tried resetting, changing settings in a text editor and importing options from VS 2013, but that didn't work.

It's okay if I wait about 0.5 seconds after typing "{" and then type enter.
Do you know where the problem is?

I am sorry if my english is wrong.

+3


source to share


1 answer


It works on my system. I am running Windows 10 and VS 2015 REL version 14.0.23107.0 D14REL without any additional tools.

After doing a quick research, autocomplete uses the Microsoft.VisualStudio.Text.BraceCompletion namespace and there is a "PreTab" that might be interesting to investigate.



One way to explore is to install the Visual Studio Extensibility Tools and try some new things, like using PreTab to implement some helper to keep the key touches.

Another way is to check out the Visual Studio Extensibility Samples on GitHub: https://github.com/Microsoft/VSSDK-Extensibility-Samples .

0


source







All Articles