Author Topic: Suppressing comment wrap on backspace  (Read 3571 times)

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Suppressing comment wrap on backspace
« on: January 28, 2008, 01:40:43 PM »
Hi guys,

Someone may have addressed this issue before but I can't find it in the forums.

Frequently I need to add another comment in the middle of a set of multiple comments e.g.

// line 1
// line 2

is to be replaced by

// line 1
// inserted comment
// line 2

However, if i make a typo and hit 'backspace' whilst typing the inserted line, the following comment is now tacked on so I end up with something like

// line 1
// inserted comment line 2

Any way of suppressing this behaviour whilst keeping comment wrap on? (Yes, I wish to have my cake AND eat it.)  :)

regards

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Suppressing comment wrap on backspace
« Reply #1 on: January 28, 2008, 01:53:23 PM »
I afraid there is no easy way out except using 'special' backspace/del/whatever keybindings (e.g. SHIFT+<key>). Or have a look at these macros to quickly toggle c-wrapping on/off.
http://community.slickedit.com/index.php?topic=452.msg1791#msg1791
HS2

outsider

  • Community Member
  • Posts: 64
  • Hero Points: 1
Re: Suppressing comment wrap on backspace
« Reply #2 on: January 28, 2008, 06:01:50 PM »
Thanks hs2.

I thought about it some more and think that the macro way is the best way to go.

regards