如何在Visual Studio 2008中自动删除尾随空格? [英] How to automatically remove trailing whitespace in Visual Studio 2008?

查看:276
本文介绍了如何在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.

  • Download: https://github.com/codecadwallader/codemaid/releases/tag/v0.4.3
  • Modern Download: https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid
  • Documentation: 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屋!

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