a vscode extension to convert gbk to utf8
press fn + f1
or cmd + shift + p
:
ext install gbktoutf8
a vscode extension to convert gbk to utf8
如标题所示, 当前文件正常, require文件是GBK编码的话,
ctrl+鼠标预览, 在点击之前就会进行转码, 而转码后的文本会直接覆盖到当前编辑的文件中
能不能加上批量转换的功能。
现在需要将整个目录一次性进行转移
设置"files.autoGuessEncoding": true,打开文件就不会自动转了
Issue Type: Bug
如果先打开vscode,再从里面打开代码,中文不会乱码;
如果直接双击代码文件打开,在vscode中会乱码,而且会把原来的编码修改,导致用其他编辑器打开也会乱码
Extension version: 0.0.2
VS Code version: Code 1.34.0 (a622c65b2c713c890fcf4fbf07cf34049d5fe758, 2019-05-15T21:59:37.030Z)
OS version: Windows_NT x64 10.0.17763
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800) |
GPU Status | 2d_canvas: enabled checker_imaging: disabled_off flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software rasterization: enabled surface_synchronization: enabled_on video_decode: enabled webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 7.84GB (4.31GB free) |
Process Argv | |
Screen Reader | no |
VM | 50% |
用了这个插件,会把文件转成utf8,但有一些文件是不能转的,比如xml文件,文件头写明了GB2312,转成utf8虽然显示对了,但xml文件本身反而是错了,编码和xml头的声明冲突。
vs code本身猜测编码算法有问题,有一部分gb2312编码文件给认成windows1252编码了。
如题
你好,建议下个版本能去除保存事件,每次打开gbk文件都会提示保存,但是保存的话就破坏了原来的编码了。
hi,是否可以支持只在显示时转换,但不保存到文件,因为我不能修改文件编码。^_^
小白一枚...请问在VSCode安装之后应该怎么使用?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.