我可以在Visual Studio 2019中左右移动选定的文本吗?

发布于 2025-02-05 04:30:45 字数 357 浏览 1 评论 0原文

我希望这个问题不会被视为重复,因为我的问题与Visual Studio 2019有关。不是VS代码。 - 将选定的文本移动到左或在Visual Studio代码中,

我可以使用一个键绑定,可以使我可以在左右行中移动任何选定的文本?除此之外,是否可以将选定的文本发送到行的开始或结尾(例如Home和End Key对光标的工作

) 。提前致谢。

I'm hoping this question doesn't get deemed as a duplicate, as my question pertains to Visual Studio 2019. Not VS Code. - Move selected text to the left or right in Visual Studio Code

Is there a key binding I can use that will allow me to move any selected text in a line, left and right? Additionally to that, would it also be possible to send selected text to the start or end of a line (like Home and End key does to the cursor)

If this is possible, it would be a very handy shortcut for me to make use of. Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

醉城メ夜风 2025-02-12 04:30:45

在VS-2022中,首先突出显示要移动的行,然后...

  • 要向右移动,请按TAB键。 (请注意,您只突出显示1行,然后确保您突出显示整个行)
  • 移动到左侧,握住移位键,然后(同时保持换档)
    按TAB键。 (现在释放偏移)

In VS-2022, first highlight the lines you want to move, then...

  • to move to the right, press the TAB key. (note, that you're highlighting only 1 row, then ensure that you highlight the entire row)
  • to move to the left, hold SHIFT key, then (while still holding SHIFT)
    press TAB key. (now release SHIFT)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文