When I am in the middle of the line, I can press Command + Enter to go to the next line. How can I do that it also automatically was adding commas if I do this in arrays?
For example, I want to add two plugins in the following ESLint config:
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'airbnb/hooks',
'plugin:import/typescript',
'import/no-unresolved',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
I add first plugin:
extends: [
...
'prettier(I am here)'
],
and I want to add another I press Command + Enter it creates a new line, but I still need to add a comma:
extends: [
...
'prettier'
(I am here)
],
I also use ideaVim, but I still haven't found anything that worked like this. Do you have any ideas?