码迷,mamicode.com
首页 > 系统相关 > 详细

Mac下如何设置Eclipse默认浏览器为chrome

时间:2017-03-17 19:49:07      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:ext   line   分享   打不开   desc   http   放弃   实验   ons   

http://stackoverflow.com/questions/5322574/how-can-i-set-chrome-as-default-external-browser-in-eclipse-for-mac

这篇文章说得很好!

开始用得是这个老外的方法,但后来屡试不爽!

运行后没有反应,连safari都打不开了


技术分享

 

后来我在命令行下运行下面的命令可以打开,经过多次实验后放弃了这种方法

/usr/bin/open -a "/Applications/Google Chrome.app"  

换另外一种思路,就是设置chrome为系统默认的浏览器

The simplest way to get Eclipse to recognize Chrome as the default system browser is :

  1. Open Safari.
  2. Go to menu Safari > Preferences > General.
  3. Change ‘Default web browser‘ to Safari.
  4. Close the Preferences dialog.
  5. Re-open the Preferences dialog.
  6. Change ‘Default web browser‘ to Chrome.
  7. Close the Preferences dialog.

但这种貌似选项不对,因为safari下只能设置safari为默认的

后来找到Mac系统通用的选项,果然成功了!

技术分享

我Mac系统的版本是OS X  EI Captain  10.11.5

 

Mac下如何设置Eclipse默认浏览器为chrome

标签:ext   line   分享   打不开   desc   http   放弃   实验   ons   

原文地址:http://www.cnblogs.com/goody9807/p/6567800.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!