Sublime text2: Opening a file containing Chinese characters will automatically append the. Dump suffix. Solution

Source: Internet
Author: User

Use sublime text2 to open. files such as C, .h, And. TXT are automatically appended. dump suffix. C ,. files such as H cannot be identified normally, and thus syntax coloring cannot be performed normally. It is said on the Internet that the GBK encoding support plug-in is installed, so the plug-in is deleted and will not be automatically added when it is opened. dump suffix, but garbled Chinese characters, because GBK ...., This plug-in is used to solve Chinese garbled characters. What should I do?

In fact, you just need to save it again. For example, I open. h file, which contains Chinese comments. When opening for the first time, sublime text2 identifies. the hfile is a non-UTF-8 file. To prevent recovery in case of exceptions, sublime text2 will automatically append the file. if the dump suffix is enabled, it cannot be recognized. the H file cannot be used for syntax coloring, so now we only need to re-set this. h. save the dump file as. h file, the system will prompt whether to replace the existing. h. You can directly replace the file and save it as. h can be used to identify and color normally. The next time you open it, sublime text2 will not be appended. dump suffix, but directly open. h. dump suffix, as long as you save it again, and save the name from XXX. x. dump is changed to XXX. x.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.