Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: ctrl+click on variables/functions/macros to jump to them #78

Open
TheSunCat opened this issue Jan 23, 2021 · 1 comment
Open

Comments

@TheSunCat
Copy link

Installed product versions

  • Visual Studio: 2019 Community
  • This extension: 0.10.123

Description

It would be really helpful to be able to ctrl+click on variables to move the cursor to their declaration. It's a feature in many IDEs which greatly increases productivity, and it would be very useful to be able to do this in large GLSL programs.

Steps to recreate

  1. Create a glsl file with the following code:
#version 430

void main() {
    vec3 foo = vec3(1);
    
    vec3 bar = foo * 2; // here
}
  1. Ctrl+click on foo

Current behavior

foo is selected

Expected behavior

The cursor jumps to the declaration of foo.

@danielscherzer
Copy link
Owner

Thanks for the feedback! I'm busy till mid of February. So this will take some time... Feel free to make a pull request if you did it yourself in the meantime. Cheers, Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants