CnPack Forum


 
Subject: suggestion: click to jump from try to except/finally
klemm
普通灌水员
Rank: 2



UID 4759
Digest Posts 0
Credits 79
Posts 38
点点分 79
Reading Access 10
Registered 2007-1-19
Status Offline
Post at 2016-11-26 07:40  Profile | Blog | P.M. 
suggestion: click to jump from try to except/finally

Hey!

In code editor, a lot of times i need to trace from try to corresponding except or finally or backwards from except/finally to it's matching try. Same thing with begin.. end i guess.

Now instead of trying to trace that thin line back (some times there are many levels of nesting!), it would be great if we could just click on the word (try, except, finally, begin, end) and jump the code editor view to the matching other end.

This would save me lots of time. I hope you like the idea and implement it.


PS! The update checking via ide is broken.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2016-11-28 17:05  Profile | Blog | P.M. 
There's already a feature "Jump to matched Keyword" in our "Coding Toolset" menu, default Hotkey is Ctrl+,

Please try it when cursor is under keyword?
Top
klemm
普通灌水员
Rank: 2



UID 4759
Digest Posts 0
Credits 79
Posts 38
点点分 79
Reading Access 10
Registered 2007-1-19
Status Offline
Post at 2016-12-5 05:26  Profile | Blog | P.M. 
It works! Nice!

But still mouse button click option would be great too. Maybe combined - ctrl+mbleft/right.
There is a good reason for this - it avoids having to switch my right hand from mouse to keyboard and then back again. Usually when i need to jump to a matched keyword is when analyzing code and trying to follow how program will work. And that involves a lot of mouse-wheel action and clicks on "follow declaration".

Either way, i'm already happy
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6750
Posts 3551
点点分 6750
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2016-12-5 09:44  Profile | Blog | P.M. 
The ctrl+mouse click events are not opened to OTA APIs, and they are processed by Editor to deal with "jump to declaration." It does not give the result whether it's ok or N/A, so it's hard to do this.
Top
 




All times are GMT++8, the time now is 2024-4-17 07:58

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.011483 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP