使用 Alt+U 快捷键转换大写
File -> Preference -> Keyboard Shortcuts
[Ctrl+K Ctrl+S]- 输入
uppercase
- 双击
Transform to Uppercase
选项卡 - 按住 Alt + U 键,然后回车
编码自动识别
File -> Preference -> Settings
[Ctrl+Comma]- 搜索
autoguess
- 勾选 “Files: Auto Guess Encoding” 选项
支持 c++11 语法
- vscode 默认是 c++98,可以通过配置 C++ 标准修改默认值
File -> Preference -> Settings
[Ctrl+Comma]- 搜索
cpp standard
- 在 “Cpp Standard” 下拉列表中选择 c++11
修改 c++ 代码格式
-
vscode 默认使用的是 Visual Studio 格式,可以通过配置 Clang_format_fallback Style 进行修改
-
File -> Preference -> Settings
[Ctrl+Comma] -
搜索
clang
-
在 “C_Cpp: Clang_format_fallback Style” 的输入
{ BasedOnStyle: Google, UseTab: Never, IndentWidth: 4, TabWidth: 4 }
欢迎关注我的公众号:飞翔的小黄鸭
也许会发现不一样的风景