Ctrl+Click to go to definition

A lot of major IDE’s have a feature that lets you Ctrl/Command+Click a symbol and go to the definition of it. (Some make it even better and let you Ctrl+Click the definition to find usages). This is a godly feature. When writing code, a very common thing to do is to see a method used somewhere and want to go to where it’s written. The current best way is to use “Find All”, copy and paste the method name, and scroll through the results. That takes a lot more than just a Ctrl+Click. I think this is a small feature that would have a very noticeable impact on the experience of coding in Studio.

(This isn’t a too hard/impossible kind of request. I think these kinds of UX improvements are essential to making Studio a good product.)

6 Likes

The current ‘goto declaration’ menu option (right-click on a definition or ctrl + F12) doesn’t suffice?

1 Like

I feel like being able to simply press a key and then a mouse click would be better.

1 Like

Sure it suffices. Ctrl+Click is just so much better and it’s worth it for such a common task.

I didn’t even realize that Roblox Studio had a ‘goto declaration’ option until right now!

This feature is so useful to me in other IDEs and I have become used to using Ctrl + Click to access this functionality. Ctrl+Click would be so much faster and more efficient than moving the mouse to the word, clicking the word, then pressing Ctrl + F12.

I agree that small improvements like this would certainly add up, and contribute massively to improving my workflow :slight_smile:

0ca5986b0e190d3f5ffa089f5a39ee2e

Also, I think it would be useful if it worked for require() statements, i’d like to be able to instantly teleport to that module script if possible, by using Ctrl+Click

1 Like

Going to say no this does not. Some of us dont have function keys…

It would be nice if it had standard IDE function. GoTo with Ctrl + Mouse Click will speed up workflow for especially for large codebase development.

Edit:
For a temporary solution I use AutoHotKey and mapped one of my side mouse buttons then used that as an alternative. Or you can map the side button to F12. While this works it gets in the way with muscle memory. Or can we get an official VSCode plugin??