vscode:为具有特定扩展名的文件设置编码 [英] vscode: set encoding for files with a specific extension

查看:87
本文介绍了vscode:为具有特定扩展名的文件设置编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio代码来编辑经典的ASP页面.

I'm working with visual studio code to edit classic asp pages.

为了不破坏所有内容,我需要使用Windows 1252编码读写.asp文件.

In order not to break everything, I need .asp files to be read and written using Windows 1252 encoding.

有什么方法可以配置它吗?如果可以在文件夹/项目/工作区的基础上完成,那会很好.

Is there some way to configure it? if it could be done on a folder/project/workspace basis that would be great.

推荐答案

请参见

假设 asp 是您的语言名称,如果不是,请将您的语言放在此处.

assuming asp is your language name, if not, put your language there.

如果只希望用于特定的工作空间,则将其放入该工作空间设置.

If you want it for only a specific workspace put that into that workspace settings.

命令面板/打开工作区设置"

Command palette/"Open Workspace Settings"

这篇关于vscode:为具有特定扩展名的文件设置编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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