View unanswered posts | View active topics


Reply to topic  [ 8 posts ] 
Go To Definition 
Author Message
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
Post Go To Definition
Go To Definition
Simple plugin that goes to the definition of the symbol under the cursor.

Screenshot
Image

Updates
11/05/09 - Release

Description
I love the Ctrl & click feature in Eclipse/Netbeans and the Go To Definition feature in Visual Studio and have decided to implement them in Flash develop. After an evening or so of trying to write this myself I come accross the "ASComplete.DeclarationLookup()" method. To my great astonishment, this does exactly what I want. So thankyou to Philippe or whoever wrote this method and did all the hardwork of the plugin for me ;)

Installation
+ Copy the DLL to your "C:\Program Files\FlashDevelop\Plugins" directory

Usage
+ Click a variable/class/function, then right click and select Go To Definition from the menu

DLL
http://www.mikecann.co.uk/Files/GoToDefinition.dll

Source
http://www.mikecann.co.uk/Files/GoToDef ... source.zip


Mon May 11, 2009 6:00 pm
Profile
Admin

Joined: Tue Aug 30, 2005 6:14 pm
Posts: 1745
Location: Helsinki, Finland
Post Re: Go To Definition
Have you tried F4?


Mon May 11, 2009 6:12 pm
Profile E-mail WWW
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
Post Re: Go To Definition
Hahhaha! Oh well not much time wasted. Plus it can act as an alternative shortcut :P


Mon May 11, 2009 8:12 pm
Profile
Member

Joined: Thu Mar 19, 2009 2:16 am
Posts: 25
Post Re: Go To Definition
Awww bummer, cannyshammy! At least you had a chance to sharpen your skills.

Thanks for the good effort.

BTW,.. Mika, I don't recall seeing that shortcut, is there a definitive list of them somewhere?


Wed May 13, 2009 4:03 am
Profile E-mail
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
Post Re: Go To Definition
Hehe, ye, oh well. Yes after being informed of the F4 key, I looked in the docs and sure enough:

http://www.flashdevelop.org/wikidocs/index.php?title=Shortcuts

That'l learn me! Gotta think of a new plug-in to do. Refactoring is the big daddy of features missing in FD still, but its a tough one, dont think im up to it just yet.


Wed May 13, 2009 8:27 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post Re: Go To Definition
This F4 shortcut should appear in the Search menu.


Wed May 13, 2009 9:29 am
Profile WWW
Member

Joined: Mon Apr 14, 2008 9:24 pm
Posts: 14
Post Re: Go To Definition
I think its wiser for it to be on the main menu not buried within the search sub-menu. I actually wanted it to be ctrl & click to take you to the definition like in netbeans and eclipse but couldn't get it to work properly.

The reason is because its one of those methods that is incredibly helpful when exploring a new code library, you can quickly bounce about the links reading the code as if its a book, following a function here, a class there. If you bury it in a sub-menu then it wont flow as smoothly from one place to the next. (this is also the reason I put my shortcut right at the top of the right click menu, so you dont have to move the mouse)

On the other hand however, you could argue why use the mouse at all? When you have the F4 key could do use the keyboard for everything.

I dont know the correct answer but from using right click to quickly go to definition in visual studio and ctrl click in eclipse/netbeans I feel the less amount of clicks made the better ;)

Mike


Thu May 14, 2009 3:45 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 7470
Location: Paris, France
Post Re: Go To Definition
Also most of the obscure useful shortcuts are listed in the Start Page.

Making the ctrl-click work is a bit difficult with our editor component.


Thu May 14, 2009 7:15 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.