Author Topic: Editor will automatically add "-----" chars  (Read 2679 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Editor will automatically add "-----" chars
« on: February 28, 2020, 02:22:58 am »
I'm using the latest 64bit C::B nightly build The 08 February 2020 build (11957) is out..

When I wrote some thing like below:

Code
    //----

After save the file, it becomes below:
Code
    //----  ----------------------------------------------------------------------------------------------------

So, why those extra chars were automatically added?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Editor will automatically add "-----" chars
« Reply #1 on: February 28, 2020, 02:51:00 am »
One of the three old new plugins is likely doing it.

Try disabling tidycmt

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Editor will automatically add "-----" chars
« Reply #2 on: February 28, 2020, 04:50:37 am »
One of the three old new plugins is likely doing it.

Try disabling tidycmt

Tim S
Hi, Tim, thanks for the help, disable tidycmt plugin fixes this issue.
Tidycmt plugin - CodeBlocks
I'm not sure how to configure this plugin's feature, maybe it can select some comment styles, but I don't know where is the config panel of this plugin. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.