Razor Helper Syntax Auto Formatting Ugly. How to fix?

后端 未结 5 794
盖世英雄少女心
盖世英雄少女心 2021-01-07 15:56

So I just have a beef with the way Visual Studio formats razor code. I\'ve always had some problems with visual studio and how it formats UI code, it always seems to do a re

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-07 16:54

    i make an extension for formatting razor document.

    Install:

    1) in extensions search for "razor-formatter"

    2) press CTRL + P AND then enter command below and press enter:

    ext install Kookweb.razor-formatter
    

    Link on VSCode marketplace:

    https://marketplace.visualstudio.com/items?itemName=Kookweb.razor-formatter

    source on github:

    https://github.com/Kookweb-ir/razor-formatter

    Of course this isn't best formatter, but this is only formatter for now.

    this is just a simple HTML beautifier that works on razor documents. i will be happy if anybody works on it and make it perfect.

提交回复
热议问题