自动或使用快捷方式删除尾随空格

本文介绍了如何在Visual Studio Code中自动或通过快捷方式删除尾随空格。可以通过用户设置启用自动修剪,使用特定插件实现项目特定设置,或者通过命令面板的快捷方式完成。在最新版本中,用户可以直接在设置中找到相关选项。
摘要由CSDN通过智能技术生成

本文翻译自:Remove trailing spaces automatically or with a shortcut

Is there a way to remove trailing spaces in Visual Studio Code (automatically or with a shortcut)? 有没有一种方法(自动或使用快捷方式)删除Visual Studio Code中的尾随空格?

I've been looking for this in the command palette and in the editor settings, but I cannot find what I am looking for. 我一直在命令面板和编辑器设置中寻找它,但是找不到我想要的东西。


#1楼

参考:https://stackoom.com/question/25aN9/自动或使用快捷方式删除尾随空格


#2楼

You can enable whitespace trimming from settings: 您可以通过设置启用空白修剪:

  1. Open VS User
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值