Reputation: 11
In vscode, I can format cpp code just use Alt-Shift-F or Ctrl-Shift-I (btw., I have installed plugin C/C++). And that style is my favourite. :)
Before:
#include<iostream>
using namespace std;
int main(void){
for(int i=0;i<2;i++)
cout<<"Hello world"<<endl;
}
After I format it:
#include <iostream>
using namespace std;
int main(void)
{
for (int i = 0; i < 2; i++)
cout << "Hello world" << endl;
}
Now I love atom, but I wonder how can I do that in Atom. Thanks!
Upvotes: 1
Views: 528