Author Topic: Jump from continue or break statement  (Read 2193 times)

jnairb

  • Senior Community Member
  • Posts: 245
  • Hero Points: 11
Jump from continue or break statement
« on: September 04, 2012, 08:10:53 PM »
I'd like a function that when called with the cursor on a C/C++ continue statement would jump to the beginning of the loop, and with the cursor on a C/C++ break statement would jump to the end of the loop/switch block.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Jump from continue or break statement
« Reply #1 on: September 04, 2012, 08:34:57 PM »
@jnairb: Very interesting proposal !
Could be another use case for a smarter 'find_matching_paren' as suggested in a prev. posting here.
(Add) Preview window support would be great, too :)
HS2

Dennis

  • Senior Community Member
  • Posts: 3954
  • Hero Points: 515
Re: Jump from continue or break statement
« Reply #2 on: November 10, 2016, 09:29:38 PM »
You can do this using Ctrl+Dot.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Jump from continue or break statement
« Reply #3 on: November 10, 2016, 10:46:34 PM »
Wow - thanks Dennis !
Pretty smart this SlickEdit ;D
HS2