Open the Command Palette (Ctrl+Shift+P) and run "Tasks: Open User Tasks" —
this will create a tasks.json file in the user directory (on Windows: %APPDATA%\Cursor\User\tasks.json)
{
"version": "2.0.0",
"tasks": [
{
"label": "Open in WebStorm",
"type": "shell",
"command": "C:\\Program Files\\JetBrains\\WebStorm 2025.3.1.1\\bin\\webstorm64.exe",
"args": [
"${workspaceFolder}",
"--line",
"${lineNumber}",
"--column",
"${columnNumber}",
"${file}"
],
"group": "build",
"presentation": {
"echo": false,
"reveal": "silent",
"focus": false,
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}
Assign a key in keybindings.json (Command Palette → Preferences: Open Keyboard Shortcuts (JSON)):
[
{
"key": "alt+shift+o",
"command": "workbench.action.tasks.runTask",
"args": "Open in WebStorm",
"when": "editorTextFocus"
}
]