格式 - 一次 - 在Visual Studio项目中的所有文件 [英] Formatting - at once - all the files in a Visual Studio project

查看:163
本文介绍了格式 - 一次 - 在Visual Studio项目中的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的是格式化的所有文件中的Visual Studio(2005年版本)项目的一次。

I am interested in formatting all the files in a Visual Studio (ver. 2005) project all at once.

目前,有做类似的编辑 - >高级 - >格式文档以格式化单个文档的方式。不过,我没有看到一个命令到项目中的所有文件格式的一次。

Currently, there is a way to format a single document by doing something like Edit->Advanced->Format Document. However, I don't see a single command to format all the files of a project all at once.

不知道如何做到这一点?

Any idea how to do that?

推荐答案

蒂姆·阿贝尔写了一个宏来做到这一点对他的博客

Tim Abell wrote a macro to do this on his blog:

下面是为Visual Studio我今天拼成一个方便的宏脚本。
  它运行在列出的文件类型的所有文档编辑格式的文档。

Here's a handy macro script for visual studio I knocked together today. It runs "edit, format document" on every document of the listed file types.

您必须留意它,因为它的互动性和有时确实弹出一个消息并等待一个答案。

You have to keep an eye on it as it's interactive and does sometimes pop up a message and wait for an answer.

您可以在VB文件<一个href=\"http://github.com/timabell/vs-formatter-macro\">http://github.com/timabell/vs-formatter-macro
  在更多信息<一个href=\"http://wiki.github.com/timabell/vs-formatter-macro\">http://wiki.github.com/timabell/vs-formatter-macro

原来的code可在博客文章。请注意,这是早于版本以上github上。

The original code is available at the blog post. Note that this is older than the version available on github above.

这篇关于格式 - 一次 - 在Visual Studio项目中的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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