VSCode在Ubuntu和Windows下不一致的快捷键比较

本文详细对比了Visual Studio Code在Windows和Ubuntu系统下的默认快捷键设置,列举了不一致及缺失的快捷键,并提供了各自的功能描述。用户可以根据个人习惯自定义快捷键设置,以实现跨平台一致性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于经常使用VSCode,且经常在windows和ubuntu系统切换使用,发现有些常用快捷键会失效,一查文档对比,发现不一致的快捷键还不少,甚至有些快捷键还会缺失。特意花了点时间一一对比,整理了一下。
官方文档:
Keyboard shortcuts for Windows:https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
Keyboard shortcuts for Linux:https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf

Windows和Ubuntu不一致的快捷键

WindowsLinux含义使用范围
Ctrl+Shift+WCtrl+WClose window/instanceGeneral
Shift+Alt + ↓ / ↑Copy line up/downBasic editing
Shift+Alt+ACtrl+Shift+AToggle block commentBasic editing
Alt+ ←Ctrl+Alt+ -Go backNavigation
Alt+→Ctrl+Shift+ -Go forwardNavigation
Alt+C / R / WToggle case-sensitive / regex / whole wordSearch and replace
Ctrl+Alt+ ↑ / ↓Shift+Alt+ ↑ / ↓Insert cursor above/belowMulti-cursor and selection
Ctrl+Shift+Alt + (arrow key)Column (box) selectionMulti-cursor and selection
Ctrl+Shift+Alt +PgUp/PgDnColumn (box) selection page up/downMulti-cursor and selection
Shift+Alt+FCtrl+Shift+IFormat documentRich languages editing
Alt+F12 Peek DefinitionCtrl+Shift+F10Peek DefinitionRich languages editing
Ctrl+F4, Ctrl+WCtrl+WClose editorEditor management
Ctrl+K SSave AllFile management
Ctrl+F4Ctrl+WCloseFile management
Ctrl+Shift+UCtrl+K Ctrl+HShow Output panelDisplay
Ctrl+Shift+COpen new command prompt/terminalDisplay
Ctrl+CCtrl+Shift+CCopy selectionterminal
Ctrl+VCtrl+Shift+VPaste into active terminalterminal
Ctrl+↑ / ↓Ctrl+Shift+↑ / ↓Scroll up/downterminal
Ctrl+Home / EndShift+ Home / EndScroll to top/bottomterminal

当然如果某些快捷键用习惯了,可以按自己喜欢的方式手动改掉。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值