VisualStudio开发UE4工程设置

转自:http://wangjie.rocks/2016/06/24/ue4-vs-setup/

推荐插件

Visual Assist X

  • C++ 代码高亮

UnrealVS Extension

  • UE4安装目录/引擎版本号/Engine/Extras/UnrealVS/VS2015/UnrealVS.vsix 双击安装

VSColorOutput

  • 将编译过程中的Output使用不同颜色输出,比如错误为红色,也可以自定义显示规则

Productivity Power Tools

  • 一组VS增强工具集合

P4VS Addin

  • P4VS 插件,可以直接在 VS 中执行 P4 操作
  • Tutorial

工程设置

基本设置

显示代码行号(Tools > Options > Text Editor > All Languages > General)
  • 勾选 Line numbers
Tab 设置为4个字符(Tools > Options > Text Editor > All Languages > Tabs)
  • Tab Size, Indent size 都填4
  • 勾选 Keep tabs
字体设置(Tools > Environment > Fonts and Colors)
  • Show settings for 选择 Text EditorFont 设置为 Consolas 字体,Size 设置为 12
  • Show settings for 选择 Output WindowFont 设置为 Consolas 字体,Size 设置为 11

开发设置

扩大 Solution Configurations 和 Solution Platforms 下拉框的宽度
  • 右键工具栏 > Customize... > Commands > Toolbar > Standard > Solution Configurations > Modify Selection > Width 改为200
  • 右键工具栏 > Customize... > Commands > Toolbar > Standard > Solution Platforms > Modify Selection > Width 改为200
关闭 Error List 窗口
  • Tools > Options > Projects and Solutions,取消选中 Always show Error List if build finishes with errors
打开 Disable External Dependencies Folders
  • Tools > Options > Text Editor > C/C++ > Advanced > Browsing/Navigation
关闭 Edit & Continue
  • Tools > Options > Debugging > Enable Edit and Continue
关闭 IntelliSense
  • 在UE4官方文档中是推荐打开的,不过用处不是很大,而且很消耗性能,如果机器配置好(高端CPU,固态硬盘,大内存),可以考虑打开
  • Tools > Options > Text Editor > C/C++ > Advanced > IntelliSense 将 Disable IntelliSense 设为True
Fallback Location 设置
  • 这个设置是为了不在工程目录下产生 .sdf 这样的文件
  • Tools > Options > Text Editor > C/C++ > Advanced > Fallback Location,将Always Use Fallback Location 和 Do Not Warn If Fallback Location Used 都设置为 True
调试增强
  • 将 UE4安装目录/引擎版本号/Engine/Extras/VisualStudioDebugging/UE4.natvis 文件复制到 VS安装目录/Common7/Packages/Debugger/Visualizers/UE4.natvis 和 计算机用户名/My Documents/Visual Studio 2015/Visualizers/UE4.natvis 中
  • 这样就能在Debug的时候直接查看 FString 等容器内容
文件编码设置
  • 源码文件采用 UTF8 编码,文件->高级保存选项->Unicode(UTF8 无签名) - 代码页 65001
  • 其他文本文件尽量采用 UTF8 编码

参考文章

猜你喜欢

转载自www.cnblogs.com/sevenyuan/p/11815296.html