如何让 Aptana 与 Google Chrome 配合使用?
有没有办法让 Google Chrome 在 Aptana 中启动?
我尝试将其添加到网络浏览器下,但是当从 Aptana 启动网页时,它会在 Firefox 中启动。
选择默认系统浏览器也不起作用。
Is there a way for me to get Google Chrome to launch in Aptana?
I tried adding it under Web Browsers but when launching the webpage, from Aptana, it launches it in Firefox instead.
Selecting Default system browser doesn't work either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
我会如何做是绿色>的地方按钮位于顶部(调试旁边),进入运行配置并为 google chrome 添加一个新条目。
chromes exe 的路径位于 (Win7)
C:\Users\USERNAME\AppData\Local\Google\Chrome\Application\chrome.exe
WinXP
C:\Documents and Settings\
username>\Local Settings\Application\chrome.exe
然后您可以直接从下拉菜单运行它。这是我的做法,但可能不适用于您的情况。
How I would do it is where the green > button is, at the top (next to debug), go into run configuration and add a new entry for google chrome.
The path for chromes exe is at (Win7)
C:\Users\USERNAME\AppData\Local\Google\Chrome\Application\chrome.exe
WinXP
C:\Documents and Settings\<username>\Local Settings\Application\chrome.exe
Then you can run that straight from the drop down menu. This is the way I do it, however it may not be applicable for your situation.
我将 Chrome 添加到运行配置中...
我从“常规”>“删除了 Firefox”网络浏览器设置。
我重新启动了 Aptana Studio 3,现在,当我单击绿色箭头运行按钮时,Chrome 就是浏览器。
向 F12 打个招呼,轻松调试 HTML 和 JavaScript。
I added Chrome to the Run Configurations ...
I deleted Firefox from the General > Web Browser settings.
I restarted Aptana Studio 3 and now, when I click on the green arrow run button, Chrome is the browser.
Say hello to F12 and debugging HTML and JavaScript with ease.
我使用的是 Windows 7,并遵循上面列出的“绿色按钮”建议。对于 Chrome,我的文件路径是“C:\Users\用户名\AppData\Local\Google\Chrome\Application\chrome.exe”。它非常简单并且运行良好。谢谢。
I have Windows 7 and followed the advice listed above for the 'green button'. For Chrome, my file path was "C:\Users\user name\AppData\Local\Google\Chrome\Application\chrome.exe". It was very simple and worked beautifully. Thank you.
rickyduck 的答案适用,但 Chrome 的路径在较新版本中可能已更改为:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
这是我必须使用的路径。
rickyduck's answer applies but the path to Chrome may have changed in newer versions to :
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
That's the path I had to use.
rickyduck 的答案正是我一直在寻找的!谢谢瑞奇!
要获取计算机上 chrome 的准确路径,只需转到开始菜单,输入 chrome,当它出现时,右键单击它并选择快捷方式选项卡以复制目标路径并直接粘贴到 Aptana 中。
rickyduck's answer is exactly what I have been looking for! Thanks Ricky!
To get the exact path to chrome on your machine, just go to your start menu, type in chrome and when it comes up, right click on it and select the Shortcut tab to copy the target path and paste right into Aptana.
按绿色按钮直接启动 Chrome 的另一种方法是从运行 -> 中删除其他浏览器。运行配置->网络浏览器。 。 。并留下铬。 。如果您想要其他浏览器,可以稍后添加。 。
Another way to directly launch chrome upon pressing green button is to delete other browsers from run -> run configuration -> web browser . . . and leave chrome alone . . if you want other browsers you can add later on . .
您可以根据需要添加任意数量的浏览器。点击运行->运行配置,然后右键单击左侧导航窗格中的 Web 浏览器,然后选择新建。使用“浏览”按钮获取应用程序路径,然后在对话框顶部输入描述性名称。单击应用并关闭。您现在有不止一种浏览器可供选择进行测试。
You can add as many browsers as you want. Click on Run -> Run Configurations then right-click on Web Browser in the left nav pane, then select New. Use the Browse button to get the application path then at the top of the dialog, type in a descriptive name. Click Apply and Close. You now have more than one browser to choose from for testing.
我添加了 Chrome 来运行配置,并删除了 Firefox 和 IE,在常规 Web 浏览器下也进行了同样的更改。 Chrome 选项卡不会显示在绿色下拉菜单中。如果我退出程序并重新启动,Firefox 和 IE 会再次回来,但现在仍然是 Chrome。
I added Chrome to run configurations, and deleted Firefox and IE, also changed likewise under General Web Browsers. The Chrome tab doesn't show up on Green dropdown. If I exit program and restart, the Firefox and IE are back again, but still now Chrome.
单击底部的小黑色箭头,该箭头位于顶部绿色运行按钮旁边:
选择 运行配置,然后您应该在“Web 浏览器”选项卡下看到一个“浏览器可执行文件” 字段:
您要点击浏览的位置,导航至Google Chrome 可执行文件 (在我的 El Captain 的 Max OS X 上:应用程序 -> Google Chrome)并双击它。
然后,单击应用(在“运行配置”窗口中)。然后运行。
就是这样! :)
使用 Aptana Studio 3 进行测试,在 Mac 上这样安装。
Click the tiny black arrow thats looks at the bottom and is located at the top, next to the green Run button:
Choose Run Configurations and then you should see a Browser executable field, under the Web Browser tab:
where you want to click Browse, navigate to the Google Chrome executable (at my Max OS X at El capitan: Applications -> Google Chrome) and double click on it.
Then, click Apply (in the Run Configurations window). Then Run.
That's it! :)
Tested with Aptana Studio 3, installed like this on Mac.