如何在 Visual Studio 2008 中自动删除尾随空格? [英] How to automatically remove trailing whitespace in Visual Studio 2008?
本文介绍了如何在 Visual Studio 2008 中自动删除尾随空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将 Visual Studio 2008 配置为在保存文件时自动删除每行末尾的空白字符?似乎没有内置选项,那么是否有任何扩展可以做到这一点?
Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?
推荐答案
CodeMaid 是一个非常受欢迎的 Visual Studio 扩展,它会自动执行此操作以及其他有用的清理.
CodeMaid is a very popular Visual Studio extension and does this automatically along with other useful cleanups.
- 下载:https://github.com/codecadwallader/codemaid/releases/标签/v0.4.3
- 现代下载:https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid
- 文档:http://www.codemaid.net/documentation/#cleaning
我将它设置为在保存时清理文件,我认为这是默认设置.
I set it to clean up a file on save, which I believe is the default.
这篇关于如何在 Visual Studio 2008 中自动删除尾随空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文