Home > Development Tools > sublime > Where is the encoding of sublime settings file?

Where is the encoding of sublime settings file?

下次还敢
Release: 2024-04-03 15:45:20
Original
777 people have browsed it

Sublime Text settings file encoding location: Windows: C:\Users{username}\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settingsmacOS: ~/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settingsLinux:~/.config/sublime-text-3/Packages/

Where is the encoding of sublime settings file?

Sublime Text Settings File encoding location

Sublime Text’s setting file encoding is located at:

  • Windows: "C:\Users\{username}\AppData\Roaming\Sublime Text 3\Packages\User\Preferences.sublime-settings"
  • macOS: ~/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings
  • Linux: ~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings

Read settings file

To read the settings file, open Sublime Text and use the following shortcut keys:

  • Windows: Ctrl Shift P
  • macOS: Cmd Shift P
  • Linux: Ctrl Shift P

Then enter "Preferences: Open Settings - User" and press Enter . This will open the Preferences.sublime-settings file.

Set Encoding

To set the file encoding, find the "encoding" setting and change it to the desired encoding. For example, to set the encoding to UTF-8, you would add the following line:

<code>"encoding": "utf-8"</code>
Copy after login

Save changes

After setting the encoding, save Preferences.sublime-settings document. Sublime Text will reload settings with the new encoding.

The above is the detailed content of Where is the encoding of sublime settings file?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template