在 WebStorm 中重新排序参数

Reorder parameters in WebStorm

在 ReSharper 中,我曾经有一个 Ctrl+Alt+Shift+Left arrow 绑定到重新排序值。它会将我选择的 paramater/value/argument 向右移动一位。例如:

first, second third

会变成

first, third, second

我已经切换到 WebStorm 并且没有我的旧 ReSharper 设置并且找不到任何类似的绑定。这在 WebStorm 中可能吗? WebStorm 有宏功能可以自己实现吗?

值得注意的是有一个 Move Element Left,但是这在 JS 文件中似乎没有任何作用。

编辑

有宏功能,但实现它的唯一方法是:

select the current word -> cut -> delete the proceeding comma -> move the cursor one word left -> paste -> add comma

如果我决定不想要那样的话,这会导致大量撤消。

目前重新排序参数的唯一方法是 Refactor | Change signature。如果您错过了更改参数顺序的其他方式,请向 youtrack 提交功能请求。另见 https://youtrack.jetbrains.com/issue/WEB-2175