GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

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

Open TheSunCat opened this issue 4 years ago • 1 comments

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.

TheSunCat avatar Jan 23 '21 18:01 TheSunCat

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

danielscherzer avatar Jan 25 '21 12:01 danielscherzer