Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rlfrost@aol.com on March 05, 2025, 06:14:56 am

Title: c++ editor
Post by: rlfrost@aol.com 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
Title: Re: c++ editor
Post by: Miguel Gimenez 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".
Title: Re: c++ editor
Post by: rlfrost@aol.com on March 05, 2025, 05:17:05 pm
I am so grateful.  Thanks for your response.

Larry