Convert property access to bracket notation

Convert dot notation property access o.a into bracket notation property access o['a'].

Refactoring (Convert)
P42 for VS Code
Convert property access to bracket notation

Configuration

  • Code Assist ID (for the configuration file): convert-dot-notation-property-access-to-bracket-notation
  • You can configure custom keyboard shortcuts with this code action kind: refactor.convert.toggle.property-access-notation.p42.convert-dot-notation-property-access-to-bracket-notation

Related Code Assists

Learn More

Available In