For Sublime Text 3
file_exclude_patterns
Setting
If your binary files have a file extension, then yes.
In your Sublime Settings you can use this setting to prevent you from seeing the files in the left project folders:
"file_exclude_patterns":
[
"*.db",
"*.dll",
"*.ds_store",
"*.egg",
"*.enc",
"*.eot",
"*.exe",
"*.ko",
"*.otf",
"*.pdb",
"*.pdf",
"*.pgn",
"*.plist",
"*.psd",
"*.pxm",
"*.pyc",
"*.rdb",
"*.sqlite",
"*.sublime-workspace",
"*.ttf",
"*.woff",
"*.woff2",
"*.zip",
],
Just modify this to your needs, and then you will not see this in your project folders in Sublime.
Toggle
Maybe you just want to turn it off or on for the current file?
Try Sublime Command Palette
using CTRL OR Command + Shift + P
and type:
HexViewer: Toggle Hex View
and press Enter or Return then the file will switch between HEX
and TEXT
.
Extra
If you don't want any-file to be converted to HEX then please use @steven-teo's answer.
If you want to learn more about the HEX Viewer you can see the Code Here & Documentation Here.
**Note: Keys vary for the Sublime Command Palette
more info on that.