Move caret to the end of line but not including comments
I'm looking for a way to move the caret to the end of the line but not including the comment of a line, so the caret should be moved before the `#` sign.
It's useful when you need to edit the end of a line of code
And it's become extra helpful when you need to edit the end of the line with multiple selections.
For example, in this code snippet, I want to change every `Bool` to `None`
```
@dataclass
class Restaurant:
address: str = Bool # Comment one
titles: list[str] = Bool # Comment one two
phones: dict[str, str] = Bool # Comment one two three
请先登录再写评论。