代码之家  ›  专栏  ›  技术社区  ›  Rob N

Visual Studio代码在多行上对齐函数参数

  •  0
  • Rob N  · 技术社区  · 7 年前

    如果一个Javascript(或Typescript)函数签名有多行参数(在Typescript中很容易发生,类型名较长),则在我点击 return

    enter image description here

    我更喜欢把论点排成一行,像这样:

    enter image description here enter image description here

    (我还想为函数执行此操作

    1 回复  |  直到 7 年前
        1
  •  0
  •   Martin Spd    7 年前

    如果他们能帮你做的话,也许可以去看看那些短绒。在扩展中搜索诸如eslint或tslint之类的插件。

    推荐文章