-
Notifications
You must be signed in to change notification settings - Fork 7.7k
control+click to jump to method declaration #9456
Comments
I'd like to note that Intellij IDEA does this for code. |
We do have this for JavaScript -- you can use Ctrl-J (Jump to Definition). We don't do it when you Ctrl-click since that's used for multiple cursors. We could potentially offer a different shortcut like Alt-click though -- leaving open to consider that. |
@peterflynn Alt-click is used to create a rectangular selection IIRC. |
@sbruchmann @peterflynn Should I open an issue about alt-click not being usable on Ubuntu to do rectangular selections since that is the keyboard/mouse shortcut to move windows? |
@Mark-Simulacrum Please do -- sounds like we need to pick a different modifier key for Linux. |
Open #9461 to report |
+1 |
@rtconner While we prioritize this issue, just to keep you unblocked, did you try the workaround mentioned here. #9461 (comment) |
@nethip I'm on windows, not ubuntu :/ |
+1 very much want ctrl + click -> go to definition |
+100 Have been trying to push bracket in a few teams I work with and this is the main missing feature almost all of the engineers have complained about. |
+1 i have decided not to use brackets when trying out new IDEs because it lacks this feature for example this and code completion for methods defined in the whole project folder |
github's Atom editor seems to be a good alternative to brackets |
don't get me even started on the terrible atom. that sluggish pluginated buggy monster is an atrocity! i have tried a large quantity of ides/editors recently because i'm trying to switch to a new one and i must say, atom was one of the most uncomfortable ones /offtopic by the way |
+1 for ctrl+clic to jump to defenition as in most other IDE's. We could extend the |
that'd be a great feature to have - but it might be a bit hard to locate the function definition in more complex cases |
+1 from me too. I can take a crack at it if someone else doesn't do it first, I am pretty stuck with work etc. for the next month but I could easily do it in early March. |
That feature(CTRL+click) should must and should. It is very convenient and useful. Alrady supported by webstorm |
So if no one is working on it ? Can i take a shot at this ? |
I don't think there's a PR for this yet @SachinPachari so go ahead. |
Ok, since we have all these issues with the 'ctrl+click' conflicting with the existing double cursor feature. Can this feature be in context menu (right-click in editor) ? |
I am fine with |
I made the whole thing as an extension. i hope its ok.
Cheers. |
I'm sorry, but I realized only now (I totally forgot) that Alt+Click is used for rectangular selections. |
Do we have any other combination that i can try ? |
I did some checking, can we try 'Ctrl-Alt-click' ? |
|
CTRL+click would be my first choice. But it looks like its affecting the multi-cursor feature. |
@petetnt , I was facing lots of issues using the 'Ctrl+click', since i was using selecting to mark/highlight the text. |
Is someone already started working on this improvement? |
@putchi i managed to add it as an extension. check the below link |
@SachinPachari thanks, but i checked it out and it doesn't work with mac OS. could you make changes to this plugin? maybe even make it "CMD + click" to go to definition? thanks in advance |
@putchi UPDATE: Oops, context menu is Control+click. Brackets extension API for shortcuts is only for keyboard shortcuts, so you'll have to edit the extension handle Cmd+click |
@putchi finally found a Mac, and i saw the issue u mentioned. |
@SachinPachari thanks! |
it would be very convenient for navigating through the source file if one could ctrl+click on a method/property name, and jump to the corresponding declaration (related to identification of auto-complete options, just need to keep the source location)
[edit] note that Quick Edit feature is useful for editing, but may be insufficient, because the focus here is on navigation. After navigating there, it would be nice to ctrl+click again, and follow a path through the code. Not necessarily editing the target right away
The text was updated successfully, but these errors were encountered: