Visual Studo for Mac 快捷键
Posted 阿炬.NET
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Visual Studo for Mac 快捷键相关的知识,希望对你有一定的参考价值。
Default Keyboard Shortcuts - Visual Studio for Mac | Microsoft Learn
Code Navigation
Commands | Keyboard shortcuts |
---|---|
Find References | ⇧⌘R, F12 |
Go to Declaration | ⌘D, F12 |
Next Error | ⌥⇧⇟, ⇧⌘F12 |
Next Issue in File | ⌥⇟ |
Previous Error | ⌥⇧⇞ |
Previous Issue in File | ⌥⇞ |
Debug
Commands | Keyboard shortcuts |
---|---|
Enable or Disable Breakpoint | ⌥⌘/, ⌘F9 |
Pause | ⌥⌘P, ⌥⌘L5 |
Remove All Breakpoints | ⇧⌘F9 |
Run To Cursor | ⌘F10 |
Set Next Statement | ⇧⌘F10 |
Show Next Statement | ⌥* |
Step Into | ⇧⌘I, ⌘F11 |
Step Out | ⇧⌘U, ⇧⌘F11 |
Step Over | ⇧⌘O, F10 |
Toggle Breakpoint | ⌘\\, F9 |
View Breakpoints | ⌥⌘B |
Designer
Commands | Keyboard shortcuts |
---|---|
Switch between related files | ⌃⌘↑ |
Edit
Commands | Keyboard shortcuts |
---|---|
Constraint Editing Mode | ⌘E |
Copy | ⌘C |
Cut | ⌘X |
Delete | ⌘⌫ |
Format Document | ⌃I |
Indent Selection | ⌘] |
Paste | ⌘V |
Preferences | ⌘, |
Redo | ⇧⌘Z |
Rename | ⌘R, F2 |
Select All | ⌘A |
Show Code Generation | ⌘I |
Toggle All Folds | ⌥⇧⌘↑ |
Toggle Definitions | ⌥⇧⌘↓ |
Toggle Fold | ⌥⇧⌘← |
Toggle Line Comment(s) | ⌘/ |
Undo | ⌘Z |
Unindent Selection | ⌘[ |
Update Frame from Constraints | ⇧⌘R |
F# Integration
Commands | Keyboard shortcuts |
---|---|
Clear F# Interactive | ⌃⌥C |
F# Interactive | ⌃⌥F |
Restart F# Interactive | ⌃⌥R |
Send line to F# Interactive | ⌃⌥L |
Send references to F# Interactive | ⌃⌥P |
Send selection to F# Interactive | ⌃⏎ |
File
Commands | Keyboard shortcuts |
---|---|
Close All | ⇧⌘W |
Close File | ⌘W |
Close Workspace | ⌥⌘W |
New File | ⌘N |
New Solution | ⇧⌘N |
Open | ⌘O |
⌘P | |
Quit | ⌘Q |
Revert | ⌘U |
Save | ⌘S |
Save All | ⇧⌘S |
Help
Commands | Keyboard shortcuts |
---|---|
API Documentation | ⌥⌘? |
Unity API Reference | ⌘\' |
Other
Commands | Keyboard shortcuts |
---|---|
Implement Unity Messages | ⇧⌘M |
Inspect | ⌥⌘I |
Project
Commands | Keyboard shortcuts |
---|---|
Add Files | ⌥⌘A |
Build | ⌘K, ⇧F6 |
Build All | ⌘B, F6 |
Clean | ⇧⌘K |
Rebuild | ⌃⌘K |
Rebuild All | ⌃⌘B |
Start Debugging | ⌘⏎, F5 |
Start Without Debugging | ⌥⌘⏎, ⌃F5 |
Stop | ⇧⌘⏎, ⇧F5 |
Refactoring
Commands | Keyboard shortcuts |
---|---|
Import Symbol | ⌃⌥␣ |
Quick Fix | ⌥⏎ |
Search
Commands | Keyboard shortcuts |
---|---|
Command | ⇧⌘P |
Find in Files | ⇧⌘F |
Find Next | ⌘G, F3 |
Find Next Like Selection | ⌘E, ⌘F3 |
Find Previous | ⇧⌘G, ⇧F3 |
Find Previous Like Selection | ⇧⌘F3 |
Find | ⌘F |
Go to File | ⇧⌘D |
Go to Line | ⌘L |
Go to Type | ⇧⌘T |
Navigate To | ⌘. |
Replace in Files | ⌥⇧⌘F |
Replace | ⌥⌘F |
Text Editor
Commands | Keyboard shortcuts |
---|---|
Complete Word | ⌃␣ |
Delete left character | ⌃H |
Delete next subword | ⌃⌦ |
Delete next word | ⌥⌦ |
Delete previous subword | ⌃⌫ |
Delete previous word | ⌥⌫ |
Delete right character | ⌃D |
Delete to end of line | ⌃K |
Dynamic abbrev | ⌃/ |
Expand selection | ⌥⇧↓ |
Expand selection | ⌥⇧↑ |
Expand selection to document end | ⇧⌘↓, ⇧⌘↘ |
Expand selection to document start | ⇧⌘↑, ⇧⌘↖ |
Expand selection to line end | ⇧↘, ⇧⌘→ |
Expand selection to line start | ⇧↖, ⇧⌘← |
Expand selection to next line | ⇧↓ |
Expand selection to next word | ⌥⇧→ |
Expand selection to page down | ⇧⇟ |
Expand selection to page up | ⇧⇞ |
Expand selection to previous line | ⇧↑ |
Expand selection to previous word | ⌥⇧← |
Expand selection to the left | ⇧← |
Expand selection to the right | ⇧→ |
Find caret | ⌘| |
Go left one character | ⌃B |
Go right one character | ⌃F |
Go to beginning of document | ⌘↑ |
Go to beginning of line | ⌘←, ⌃A |
Go to end of document | ⌘↓ |
Go to end of line | ⌘→, ⌃E |
Go to Matching Brace | ⇧⌘\\ |
Go to next line | ⌃N |
Go to next word | ⌥→ |
Go to previous line | ⌃P |
Go to previous word | ⌥← |
Insert line break after the caret | ⌃O |
Move caret to EOL and insert new line | ⇧⏎ |
Move the line or highlighted selection down | ⌥↓ |
Move the line or highlighted selection up | ⌥↑ |
Move to next usage | ⌃⌥⌘↓ |
Move to prev usage | ⌃⌥⌘↑ |
Show Parameter List | ⌃⇧␣ |
Show quick info | ⌘F1 |
Show Scopes | ⌥⇧⌘P |
Transpose characters | ⌃T |
Wrap with <div> | ⌥⇧W |
View
Commands | Keyboard shortcuts |
---|---|
Center and Focus Document | ⌃L |
Focus Document | F7 |
Full Screen | ⌃⌘F |
Move to Next Notebook | ⌥⌘→ |
Move to Previous Notebook | ⌥⌘← |
Navigate Back | ⌃⌘← |
Navigate Forward | ⌃⌘→ |
Normal Size | ⌘0 |
One Editor Column | ⌥⌘1 |
Show Next | ⌥⌘↓, F8 |
Show Previous | ⌥⌘↑, ⇧F8 |
Two Editor Columns | ⌥⌘2 |
Zoom In | ⌘+, ⌘= |
Zoom Out | ⌘-, ⌘_ |
Window
Commands | Keyboard shortcuts |
---|---|
Activate 1 | ⌘1 |
Activate 2 | ⌘2 |
Activate 3 | ⌘3 |
Activate 4 | ⌘4 |
Activate 5 | ⌘5 |
Activate 6 | ⌘6 |
Activate 7 | ⌘7 |
Activate 8 | ⌘8 |
Activate 9 | ⌘9 |
Hide Others | ⌥⌘H |
Hide Visual Studio | ⌘H |
Minimize | ⌘M |
Next Document | ⌘, ⌘F6 |
Previous Document | ⌘, ⇧⌘F6 |
Switch to next document | ⌃⇥ |
Switch to next tool window | ⌃⌥⇥ |
Switch to previous document | ⌃⇧⇥ |
Switch to previous tool window | ⌃⌥⇧⇥ |
macOS key symbols lookup
Symbol | Key |
---|---|
⌘ | Command (cmd) |
⌥ | Option (alt) |
⇧ | Shift |
⌃ | Control (ctrl) |
⇞ | Page Up (Pg Up) |
⇟ | Page Down (Pg Dn) |
⌫ | Delete (Backspace) |
⌦ | Forward Delete |
⏎ | Return |
←→↑↓ | Arrow Keys |
↖ | Home |
↘ | End |
␣ | Space Bar |
⇥ | Tab |
Visual Studio for Mac第四预
微软发布Visual Studio for Mac第四预览版
去年 11 月,微软发布了 Visual Studio for Mac 的首个预览版本,并且承诺后续数月会带来更多功能。而今天,随着 Visual Studio 2017 的正式发布,Visual Studio for Mac 也迎来了第四个预览版本。Xamarin 团队的 Miguel de Icaza 解释到:“Visual Studio for Mac Preview 4 增添了许多新功能,包括 Xamarin 和 .NET Core workloads 的更新”。
他补充道:
● Visual Studio for Mac Preview 4 还拓展了 .NET Core 项目模板,并且支持漂亮的新 MSBuild .NET Core 项目格式;
● Xamarin workload 更新引入了新的 iOS Audio Unit 向导、Android 绑定项目操作、以及其它移动工具方面的改进;
● 此外该预览版本支持 NuGet 4.0、修复了大量 bug、并带来了诸多性能改进。
正如 VS 2017 那样,Mac Preview 4 带来了 Xamarin.Forms 预览器的增强,且新增和更新了开发模板:“我们重整了所有 iOS、watchOS、tvOS 模板,以及一系列新的扩展,让开发变得更加容易”。
此外还有简化了云功能访问的全新连接服务(Connected Services),面向各大主流平台的最新 SDK(包括 Android 7.1 Nougat、iOS 10.2、以及 watchOS 3)。
下面是 Visual Studio for Mac Preview 4 的其它一些关键变动:
● 包含了所有新特性,修复了包括 Xamarin Studio 6.3 在内的 bug;
● MSBuild 现已默认替代 xbuild;
● 便携与嵌入式编译选项现已能够详细指定;
● 集成开发环境中的各项优化、内存利用与性能改进。
完整发行说明请见 Xamarin 官网:
https://developer.xamarin.com/releases/vs-mac/preview/vs-mac-preview1/
Visual Studio for Mac Preview 4 下载地址:
https://dl.xamarin.com/VsMacInstaller/VisualStudioforMacPreviewInstaller.dmg
以上是关于Visual Studo for Mac 快捷键的主要内容,如果未能解决你的问题,请参考以下文章
Visual Studio 2022 for Mac v17.0 发布,离线安装包下载