How to automatically add spaces before and after operators(=,+,-,*,/,etc) when I'm writing code.

Revision en2, by gjy5885, 2020-07-10 14:41:01

Hi everyone, For example, if I type "x=1", there are no spaces, unless I manually add them. For convenience and productivity reasons, I’m looking for an automatic way to get: "x = 1". This means that when I enter "=" is equivalent to input " = ". The operator may be =,+,-,/,*,etc. Recently, I have seen similar functions on the website: https://wingware.com/hints/auto-editing#:~:text=When%20enabled%20with%20the%20Editor,Wing%20will%20enter%20x%20%3D%201. It's called Auto-Enter Spaces, but only for Python. Since my main language is C++, I hope to find similar functions for C++. If anyone helps me, thank you very much!

Tags code style, auto indent, auto enter space

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English gjy5885 2020-07-11 15:08:48 113
en3 English gjy5885 2020-07-10 16:49:25 100
en2 English gjy5885 2020-07-10 14:41:01 23
en1 English gjy5885 2020-07-10 14:17:02 707 Initial revision (published)