是否有解决方案范围的方法来取消整个文件的标签化 [英] Is there a solution-wide way to Untabify the whole files

查看:37
本文介绍了是否有解决方案范围的方法来取消整个文件的标签化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了一个项目,它都是使用 Tab ,但我总是使用 Space.有一个编辑->高级->取消tabify"选项,但那时我必须一个一个选择文件并对所有文件执行此操作,所以我想知道是否有一种方法可以将thzt应用于整个文件在项目中.我正在使用 C# 和 VS2010 Pro.我还安装了 Resharper,以防万一它有帮助.

I have downloaded a project and it is all using Tab , but I always use Space. There is the option that "Edit->Advanced->Untabify" but for then I have to select files one by one and do this for all of them, so I was wondering if there a way that I can apply thzt to the whole files in the project. I am using C# and VS2010 Pro. I also have Resharper installed, in case it has something that can help.

推荐答案

最好的办法是使用文件中的查找和替换 (ctrl-shift-h).打开正则表达式,搜索 \t 并替换为空格.您可以将文件过滤器设置为 *.cs 或您需要清理的任何文件类型.

Your best bet is to use the Find and Replace in files (ctrl-shift-h). Turn on regular expressions, search for \t and replace with spaces. You can set the file filter to *.cs or whatever file type you need to clean up.

这篇关于是否有解决方案范围的方法来取消整个文件的标签化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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