Mac version Sublime text right-click Open in Browser does not recognize Chinese name resolution

Source: Internet
Author: User
Tags sublime text

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

Related Article

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.