-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: _posts/2024-08-17-vscode-page-scroll-shortcut.md
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: post | ||
title: Windows和苹果MacOS上的 vscode 翻页及上下滚动行快捷键 | ||
--- | ||
|
||
VS Code有两种类型的翻页,一种是光标跟随的翻页,一种是光标不跟随的翻页,分别对应不同的快捷键。 | ||
|
||
同样,上下滚动行也分这么两种。 | ||
|
||
下面介绍一下它们在Windows和苹果MacOS上的快捷键。 | ||
|
||
Windows上 | ||
|
||
光标跟随的翻页快捷键就是 PageUp / PageDown, | ||
光标不跟的随翻页快捷键是 Alt + PageUp / PageDown。 | ||
|
||
光标跟随的上下滚动行快捷键就是 上箭头 / 下箭头, | ||
光标不跟随的上下滚动行快捷键是 Ctrl + 上箭头 / 下箭头。 | ||
|
||
|
||
苹果MacOS上 | ||
|
||
光标跟随的翻页快捷键就是 fn + 上箭头 / 下箭头, | ||
光标不跟随的翻页快捷键是 fn + command + 上箭头 / 下箭头。 | ||
|
||
光标跟随的上下滚动行快捷键就是 上箭头 / 下箭头, | ||
光标不跟随的上下滚动行快捷键是 fn + control + 上箭头 / 下箭头。 | ||
|
||
|
||
感觉光标不跟随翻页快捷键在翻页效果上更精确一些,在不需要编辑,只是看源码时很方便。 | ||
|
||
光标不跟随的上下滚动行快捷键在对可视区域进行微调时比较方便。 | ||
|
||
这些快捷键对像我这样的键盘控来说特别有用,习惯使用鼠标的朋友们可能直接用鼠标滚轮就可以了。 | ||
|