Skip to content

Please add expansion step for variable #33

@amoliski

Description

@amoliski

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);

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions