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

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

这篇文章说得很好!

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

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


enter image description here

 

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

/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

 

posted @ 2017-03-17 18:23  PointNet  阅读(1351)  评论(0编辑  收藏  举报