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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -