Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Shutheblanksup(去除vscode默认c++格式化中的空格)New to Visual Studio Code? Get it now.
Shutheblanksup(去除vscode默认c++格式化中的空格)

Shutheblanksup(去除vscode默认c++格式化中的空格)

createdforsbu

|
2,116 installs
| (2) | Free
去除vscode默认c++格式化中的空格(虽然似乎很多人喜欢这些空格 哈哈)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Shutheblanksup README

PS. (我现在已经习惯那些空格了(😂),不过还是提示一下)不要在setting.json里面用,有些地方是需要空格的,例如code runner插件的配置当中。——2019年7月20日14:27:06更新


https://marketplace.visualstudio.com/items?itemName=createdforsbu.shutheblanksup

不太喜欢那么多空格的风格,因而写了这个蹩脚的小插件:

Before:

#include <bits/stdc++.h>
using namespace std;
int main()
{
    string s = "Shutheblanksup ~ ";
    auto t = s;
    for (auto i : s)
        cout << i << endl;
    while (true)
        return 0;
}

After:

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s="Shutheblanksup ~ ";
    auto t=s;
    for(auto i:s)
        cout<<i<<endl;
    while(true)
        return 0;
}

立个Flag,八月回家计划再添加一些功能,例如支持Java风格的花括号,如下所示

int main(){
    return EOF;
}
while(true){
    This is java style, right?
}

说不定再添加一个叫“气疯了”的功能,例如写着写着发现有人在代码里下了毒,气疯了,点击“气疯了”即可删除所有的代码并保存(看样子真是气疯了)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft