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

Please add expansion step for variable #33

Open
amoliski opened this issue Oct 4, 2022 · 0 comments
Open

Please add expansion step for variable #33

amoliski opened this issue Oct 4, 2022 · 0 comments

Comments

@amoliski
Copy link

amoliski commented Oct 4, 2022

Is it possible to add an expansion step to select the variable name and equals sign when expanding an object?

Ex:

if(cond === 1) {
  console.log('cond is 1')
    const a = {
      a: 5,
      b: 5,
      c: 12,
    }
  console.log(a);
}

If the brackets are selected:

const a = {
a: 5,
b: 5,
c: 12,
}

And you press ctrl+w, it should expand to:
if(cond === 1){
console.log('cond is 1')
const a = {
a: 5,
b: 5,
c: 12,
}

console.log(a);
}

but it instead selects the entire contents of the 'if' conditional block

if(cond === 1){
console.log('cond is 1')
const a = {
a: 5,
b: 5,
c: 12,
}
console.log(a);

}

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

No branches or pull requests

1 participant