Author Topic: c++ editor  (Read 952 times)

Offline rlfrost@aol.com

  • Single posting newcomer
  • *
  • Posts: 2
c++ editor
« on: March 05, 2025, 06:14:56 am »
Hello to the forum.

I am new to code::blocks, but I like the layout quite a lot.  I do have a question about code formatting.  When I use AStyle for formatting, the resulting code looks very nice.
I do wonder, however, if there is a formatting trick to put a space between cin and cout and the associated redirection characters.  I am sloppy with typing, and often omit the space.

Thanks for replies.

Larry

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1706
Re: c++ editor
« Reply #1 on: March 05, 2025, 11:51:40 am »
Go to Settings-- Editor -> Source formatter, select the "Padding" tab and check "Insert space padding around operators".

Offline rlfrost@aol.com

  • Single posting newcomer
  • *
  • Posts: 2
Re: c++ editor
« Reply #2 on: March 05, 2025, 05:17:05 pm »
I am so grateful.  Thanks for your response.

Larry