Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whether VSCode will change the encoding of the entire source code file #236928

Open
lazy-wangxl opened this issue Dec 25, 2024 · 2 comments
Open
Assignees

Comments

@lazy-wangxl
Copy link

Open the source code written by other tools (it's impossible to verify exactly which tools) with Visual Studio Code, and then make code modifications. I don't know whether it will change the encoding of the entire source code file or for some other reasons. When committing the code with Git (or when using git diff), it will show that the entire file has been modified. However, when using tools like Microsoft Visual Studio or Sublime, there won't be such a problem.

@RedCMD
Copy link
Contributor

RedCMD commented Dec 25, 2024

you can set the encoding in the bottom right corner

@lazy-wangxl
Copy link
Author

you can set the encoding in the bottom right corner

I am not satisfied with your answer. If I forgot to modify the encoding before editing, how can I know the correct encoding of the original code? Why don't other editors have similar problems? I have used Notepad++, Sublim, Visual Studio, SourceInsight, CLion, etc. without this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants