C# Visual Studio 2015 - Automatic jump into brackets -


this first question on stackoverflow, here goes:

i've got annoying problem/feature in visual studio 2015. problem every time create if statement, for, while, etc. autocomplete (tab-tab). when go line of end bracket , try create new line (simple press of enter) right after it, text cursor jump brackets, instead of making new line.

i've looked far wide trying disable "feature" incredibly annoying. have not been able find information on anywhere, asking question.

thank you!

how produce problem:

  1. anywhere in c# project, make new if statement (while, for, etc. can used too).
  2. navigate after end bracket.
  3. press enter make new line.
  4. the marker have jumped inside of statement, instead of making new line.

the 'problem' when using tab key activating snippets feature. after typing tab in 'snippet editing' mode, each tab (and shift + tab) used navigate placeholders defined snippet. in snippet mode, enter key takes wherever person designed snippet thought best place leave cursor after snippet. if snippet happens inside brackets.

the news can create own snippets, , modify existing snippets change behaviour. however, far know involves manually editing snippet definition files (xml files) or using external extensions. example: http://blogs.msdn.com/b/visualstudio/archive/2014/01/15/visually-creating-snippets.aspx

as workaround, can press esc exit snippet editing mode before pressing enter.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -