Currently there are only two fields in the TextEditorOptions API, a few other TextEditor-related APIs, and none of them is able to deal with the text buffer's encoding.
Comparing to Atom's TextEdit API, that is far from enough.
Most importantly, the API limitation makes it (seems) impossible for vscode-editorconfig to implement features like charset
support, which is a crucial need for many people.
:+1: Also trimTrailingWhitespaces
is missing
At least #751 would be solvable if working with BOM were better and my issues would completely go away if there was a way to, per editor extension, set the encoding and other stuff.
So :+1:
We also need access to the end of line sequence for EditorConfig.
T_T... my extension ......
still backlog... :(
I also need this for my extension, as I explain here. Did not realize this issue already existed.
Definitely want this feature!
I believe that full .editorconfig
support is blocked (https://github.com/editorconfig/editorconfig-vscode/issues/35) until the API for buffer encoding is added. Is there any chance this fact could speed this up?
@tomasiser is correct. This is the last feature for full EditorConfig support.
any news?
any news?
any news?
any news?
Does this issue have any chance to be resolved ?
I didn't find a way to work with a multi-encoding project (git repository), someone can help ?
any news? As @bizoo said, my multi-encoding project (git repository) will get problem in git diff view.
please say this is coming soon?
This will be implemented after the Half-Life 3 release, I think 馃
Why does there seem to be so little interest in implementing this into the API? I don't believe it should be too difficult to do.
How is this issue handled? I See it's in the backlog but very far down. How are issues handled from the backlog? Could this perhaps be bumped up?
There are much more important features that should be implemented. For example, in May, it was done:
Encoding-related issues have low priority, because they are related to text editing. As you might guess, text editing is not important for a text editor.
:rage4:
@bpasero, @jrieken Care to take a look at this?
This issue was brought up by @sodatea (his comment) on November of 2015 and a similar issue seems to be reported here #34 from February of 2017. It would be nice if you could provide any explanation / "definitive no" if implementing these aren't possible -- my understanding is that you guys should be familiar with the API.
This issue has forced me to use other editors instead (Atom, Sublime Text) - in my work I have to constantly switch between files with different encodings and line-endings. Without editorconfig this would most likely end in a disaster.
@joaomoreno @bpasero @jrieken this issue is blocking phpcs 'PHP CodeSniffer for Visual Studio Code' from being used to its full potential. Any change to consider resolving this issue in order to attract more php coders to using VScode ?
With access to 'encoding' of file, the diff gutter of GIT and SVN can improved (when files.autoGuessEncoding
is true
)
@joaomoreno @bpasero @jrieken this issue keeps being unresolved. Would be nice if you guys at least had a shout here. So we'd know we're not just barking at trees
Woof woof woof
(one for each year this bug has been alive)
@alexandrudima I see you're a dev of VS Code. Could you shed some light on this matter?
For me it would be great to have at least get_encoding()
, unlike set_encoding()
it should be much easier to implement.
please support multi charset
any news on this?
Any news here?
5 years!?
This is needed!
Similar to
vscode.window.activeTextEditor.document.eol
something like
vscode.window.activeTextEditor.document.encoding
is needed and I can imagine multiple use cases.
In my case (some own extension) I want to process a VSCode document's content with some external processing tool.
That tool must for sure be aware of the encoding to do a good job.
Thank you,
Jamil
5 years!?
Most helpful comment
There are much more important features that should be implemented. For example, in May, it was done:
Encoding-related issues have low priority, because they are related to text editing. As you might guess, text editing is not important for a text editor.