1、Visual Assist中文注释红色波浪线问题;
2、Visual Studio中显示代码行号;
3、Visual Studio重新生成解决方案;
Visual Assist中文注释红色波浪线问题:
安装完Visual Assist之后,添加的中文注释会有红色波浪下划线,影响视觉:)
方法一:可以在注释后面加分号或者加>;
//>设置大图标
或者
//设置大图标;
方法二:
选择Visual Assist->Visual Assist options->underlining->取消勾选第一项注释或者字符串拼写错误。
//Visual Studio中显示代码行号:
1)打开VS,“工具”=》“选项”;
2) 点击选项里的“文本编辑器”;
3)点击“ 所有语言 ”, 在“ 显示 ”里将“ 行号 ”选中,“ 确定 ”。
//Visual Studio中重新生成解决方案步骤:
//右键点击项目解决方案:
1)清理解决方案;
2)生成解决方案;
3)重新生成解决方案。
// Never use system("PAUSE") as it is said that it might cause some undefined effects.
// Instead, put a call to cin.get() and that will work more cross-platform.