JS - change object property access notation
Is there any key shortcut to switch property access notation, I mean between dot and bracket notation:
var myObj = {
"aaa": "b"
};
// this:
var x = myObj.aaa;
// i want to switch it to:
var x = myObj["aaa"];
It would be very usefull when I need refactor my code for google's closure compiler (it doesn't rename bracket style notation...)
Thanks for reply!
Please sign in to leave a comment.
Not currently possible. Please vote for http://youtrack.jetbrains.com/issue/WEB-6529