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

4 posts, 0 answers
  1. Nick
    Nick avatar
    6 posts
    Member since:
    Jan 2014

    Posted 30 Jul 2018 Link to this post

    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.
  2. Vessy
    Admin
    Vessy avatar
    2211 posts

    Posted 31 Jul 2018 Link to this post

    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.
  3. Nick
    Nick avatar
    6 posts
    Member since:
    Jan 2014

    Posted 25 Jan 2019 in reply to Vessy Link to this post

    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
  4. Vessy
    Admin
    Vessy avatar
    2211 posts

    Posted 29 Jan 2019 Link to this post

    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.
Back to Top