Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>gsformatNew to Visual Studio Code? Get it now.
gsformat

gsformat

lint

|
153 installs
| (0) | Free
gslang代码规范检查
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

gslang 代码规范检测

特殊说明

  1. 很多符号左右都要有空格。有时候为了多行排版美观,左侧的空格并非一个。这里只要空格结束的位置是4的倍数就认为符合规范。
  2. 支持检查map多行书写时,冒号的位置一致即合法。
  3. 每一个函数要求有注释。除了以下情况:
    1. create, destruct,main。
    2. 整个函数书写在同一行。public int add(int a, int b) { return a + b; }
    3. 和上一个函数紧密接的。// 注释 public void fun1() { } private void _fun1() { }
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft