我怎样才能在功能点击F1时做出的IntelliJ / Android的工作室开放的Android文档? [英] How can I make IntelliJ/Android Studio open Android docs when clicking F1 on function?
问题描述
让我们说我有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的工作室开放的Android文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!