如何自动清除C ++中的代码? [英] How do I automatically clean up code in C++?

查看:111
本文介绍了如何自动清除C ++中的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个介绍性编程类中作为TA工作,学生倾向于将它们的程序提交为一行,或没有任何缩进。有没有任何工具,让我插入缩进和类似的东西自动? (我们使用C ++和VisualStudio)

I'm working as a TA in an introductory programming class, and the students tend to submit their programs as either one line, or without any indentation. Is there any tool that allows me to insert indents and things like that automatically? (We're using C++ and VisualStudio)

推荐答案

选择整个文件(Ctrl-A),然后按Ctrl-K Ctrl -f,这本质上是整个文档的格式化。

Select the entire file (Ctrl-A) and then hit Ctrl-K Ctrl-F, which is essentially format the entire document.

编辑:当然在Visual Studio IDE

Of course in Visual Studio IDE

这篇关于如何自动清除C ++中的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆