This works in VSCode but not in Cursor, for me. Perhaps one can activate it in the settings but I didn’t manage to find it. This is not supposed to be a high effort post, but since Cursor is aiming to be a VSCode clone it would make sense to copy this feature.
I think i know why this bug happens. sorry for that. will fix in the next release.