This is a migrated thread and some comments may be shown as answers.

Razor formatting adds extra tab in Visual Studio with every Ctrl + k + d

3 Answers 936 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 30 Jul 2018, 02:16 PM
Every time I auto format a page in Visual Studio that has Kendo MVC Razor code, it adds an extra tab to all lines (expect the first one). It's been like this for several months.
B
Top achievements
Rank 1
commented on 22 Jun 2022, 09:25 PM | edited

Still not formatting correctly> I'm using VS 2022:

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 31 Jul 2018, 06:54 AM
Hi Nick,

The auto formatting feature of Visual studio depends on the applied settings and cannot be controlled by our widgets. You can see how to customize the formatting in order to fit your needs better here:
https://msdn.microsoft.com/en-us/library/999b219z(v=vs.71).aspx


Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nick
Top achievements
Rank 1
answered on 25 Jan 2019, 07:51 PM

A follow up for those with the same issue.

It's been an issue in Visual Studio for the past couple years. It looks like they are finally addressing it in VS 2019. Here's the official thread.

https://developercommunity.visualstudio.com/content/problem/323902/razor-multiline-html-helper-formatting-indent-issu.html

Cheers,
Nick
0
Vessy
Telerik team
answered on 29 Jan 2019, 02:52 PM
Hi,

Thank you for sharing this information with us, Nick  - it is really good that Visual Studio developers have handled this issue in the latest version.

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Nick
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Nick
Top achievements
Rank 1
Share this question
or