visual studio code - How to make new line be automatically indented when programming with c++ in vscode -


as title shows, don't know how make new line automatically indented when use statement of "if...else","for "or"while". example, default ,it this.

if(flag==true) cout<<...; else cout<<...; 

but want make this.

if(flag==true)     cout<<....; else     cout<<....; 

and know "{}" can make it, when writing statement, there no need use"{}". giving advice.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -