Spacing around brackets
I'm trying figure out if its possible to enforce the following JavaScript code style,
currently I'm using the Within brackets option in the code style preferences.
array declaration:
const array = [ 1, 2, 3 ] // right, spaces between the brackets and the elements
const array = [1, 2, 3] // wrong
array access:
array[1] // right, no spaces in array, can't get this to work
array[ 1 ] //wrong, what i'm actually getting
Thanks,
Dar
Please sign in to leave a comment.
Not currently possible, as it requires adding 1 more formatting option; please vote for https://youtrack.jetbrains.com/issue/WEB-13488 to be notified on any progress with it