我怎样才能在功能点击F1时做出的IntelliJ / Android的工作室开放的Andr​​oid文档? [英] How can I make IntelliJ/Android Studio open Android docs when clicking F1 on function?

查看:154
本文介绍了我怎样才能在功能点击F1时做出的IntelliJ / Android的工作室开放的Andr​​oid文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们说我有Android的code的以下行:

Let's say I have the following line of Android code:

MyClass myClass = (MyClass) intent.getExtras().getSerializable("SomeKey");

如何才能使的IntelliJ / Android Studio中打开浏览器并击中F1时,当光标已标注getSerializable?

How can I make IntelliJ/Android Studio open a browser and navigate to the following URI when hitting F1 while the cursor has marked "getSerializable"?

<一个href=\"http://developer.android.com/reference/android/os/Bundle.html#getSerializable(java.lang.String)\" rel=\"nofollow\">http://developer.android.com/reference/android/os/Bundle.html#getSerializable(java.lang.String)

是否有此插件可能?

推荐答案

打开项目结构窗口,然后转到并指向Android的罐子:

Open up Project Structure window and then go to Libraries and point to the android jar:

现在preSS绿色加号:

Now press the green plus sign:

选择指定文档的URL ... 选项:

输入了Android SDK API网址:

Enter the Android SDK API url:

preSS 确定都回来了,所以你在编辑器中再次结束的方式。现在放置插入符的方法和preSS <大骨节病>移 + <大骨节病> F1

Press OK all the way back so you end up in the editor again. Now place the caret at the method and press Shift+F1:

浏览器将打开并导航到正确的页面。

The browser will open up and navigate to the correct page.

这篇关于我怎样才能在功能点击F1时做出的IntelliJ / Android的工作室开放的Andr​​oid文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆