使用键盘快捷键浏览代码 [英] Navigating through code with keyboard shortcuts

查看:123
本文介绍了使用键盘快捷键浏览代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始感到需要快速使用键盘快捷键在代码中运行,以便更快地到达我要进行任何更改的位置(避免使用鼠标或长时间按住).

I'm starting to feel the need to run fastly through code with keyboard shortcuts, to arrive faster where I want to make any changes (avoiding use of mouse or long times holding , , and ).

我已经在使用一些:

  • Home -当前行中的第一个位置

  • Home - first position in current line

结尾-当前行中的最后一个位置

End - last position in current line

Ctrl + Home -整个代码的第一行

Ctrl + Home - first line of the entire code

Ctrl + End -整个代码的最后一行

Ctrl + End - last line of the entire code

Page Up -相同的垂直位置,在

Page Up - same vertical position, one screen above

Page Down -相同的垂直位置,位于

Page Down - same vertical position, one screen below

Ctrl + Page Up -当前屏幕的第一行

Ctrl + Page Up - first line in current screen

Ctrl + Page Down -当前屏幕的最后一行

Ctrl + Page Down - last line in current screen

Ctrl + /-每个单词跳过单词

Ctrl + / - skipping word per word

你有什么?

我使用Visual Studio. (但我可以接受任何答案,因为我可能很快就会使用其他答案)

I use Visual Studio. (but I'm open to any answer, as I maybe can use others soon)

obs:我已经搜索了stackoverflow,但没有找到与此内容相关的好问题,也没有找到键盘代码搜索列表.如果重复出现,很抱歉找不到它,很抱歉,我一直在这里.

obs: I've searched through stackoverflow and didn't find a nice question with this content, nor a list of keyboard code searching. If it's repeated, I'm sorry for not finding it, I'm here in my best intentions.

这个问题与快捷方式无关,不仅与Visual Studio有关,还与通过快捷方式运行代码有关.

This question is NOT about any shortcuts, and not only about visual studio, it's about running through code with shortcuts.

到目前为止适合该问题的答案:

  • Ctrl + --跳至最后一个光标位置

  • Ctrl + - - jumps to last cursor position

Ctrl + Shift + --跳至下一个光标位置

Ctrl + Shift + - - jumps to next cursor position

Ctrl + F3 -跳转至下一个出现Curson的单词

Ctrl + F3 - Jumps to next occurance of the word the curson is in

Shift + F3 -与上述相同,向后.

Shift + F3 - Same as the above, backwards.

F12 -转到光标位于

Ctrl + ] -跳转到匹配的花括号并选择

Ctrl + ] - Jumps to matching brace and select

我会做更多的广告,因为有答案.

I'll ad more as there are answers.

推荐答案

对于Visual Studio, Ctrl + -是无价的(跳到最后一个位置).

For Visual Studio, Ctrl + - is priceless (jump to last position).

这篇关于使用键盘快捷键浏览代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆