You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the vite plugin for the devtools and have properly setup launchEditor: "cursor" and added cursor to my path on macos.
When I click a component from the devtools to open it into cursor, it always opens two editors for the line and column of the corresponding html tag:
Apparently cursor requires the --goto option with :line:column appended to the file name to properly go to a line/column: cursor --goto /.../SomeVueFile.vue:22:1
If anyone else has an issue with this, here is a workaround:
Create a cursorgoto.sh file in your project root with this content:
The text was updated successfully, but these errors were encountered:
Thooto
changed the title
Open in cursor opens two editor tabs correspond to line and column
Open in cursor opens two editor tabs corresponding to line and column
Apr 10, 2025
Hello,
I am using the vite plugin for the devtools and have properly setup
launchEditor: "cursor"
and added cursor to my path on macos.When I click a component from the devtools to open it into cursor, it always opens two editors for the line and column of the corresponding html tag:
Apparently cursor requires the
--goto
option with :line:column appended to the file name to properly go to a line/column:cursor --goto /.../SomeVueFile.vue:22:1
If anyone else has an issue with this, here is a workaround:
cursorgoto.sh
file in your project root with this content:Make it executable
chmod +x cursorgoto.sh
Replace it in your vite config:
Thank you!
The text was updated successfully, but these errors were encountered: