Problem Description:
Mac under Sublime text open Chinese named HTML file, right-click Open in Browser, browser unresponsive.
SolveIdeas:
Either adapt to the software or improve the software to adapt.
1. Preview the HTML file of the Chinese name into an English name HTML file.
2. Transform sublime text, install plugin sidebarenhancements, use "Open in Browser" function of plugin.
3. Set Sublime text shortcut, Path: Preferences, KeyBindings, set shortcut keys, paths, etc. in the open user file
SolveOfficeLaw:
Now use the installation sidebarenhancements to resolve the following steps:
1. installation sidebarenhancements
2 . Sublime Text->preferences->ey Bindings-user, configured as follows:
[
// Habitscommand+bdefault Chrome
{ "Keys": ["Command+b"], "command": "Side_bar_files_open_with",
"args": {
"Paths": [],
"Application": "/Applications/Google Chrome.app",
"Extensions":".*"
}
},
//Safari
{ "Keys": ["Command+2"], "command": "Side_bar_files_open_with",
"args": {
"Paths": [],
"Application": "/applications/safari.app",
"Extensions":".*"
}
},
//Firefox
{ "Keys": ["Command+3"], "command": "Side_bar_files_open_with",
"args": {
"Paths": [],
"Application": "/applications/firefox.app",
"Extensions":".*"
}
}
]
When the configuration is complete, press "Command+b" to use chrome preview.
Mac version Sublime text right-click Open in Browser does not recognize Chinese name resolution