Multi-Select in context? (select as object/key/function/etc rather than string)


#1

Is there a way to use the multi-select cmd + d or is there a similar shortcut or even a package that will contextually select the next or select all occurrences of the current selection based on it’s context?

I’m most likely not using the proper terminology, so here is a simplified example:

For example, using the following snippet:
var A = [“A”,“B”,“C”];
Array.isArray(A);

If you use select the first “A” where you are defining the variable and cmd + d, you will get:
var A = [“A”,“B”,“C”];
Array.is A rray(A);

THIS is what my desired outcome is:
var A = [“A”,“B”,“C”];
Array.isArray(A);