IntelliJ IDEA에서 JavaDoc을 보는 방법은 무엇입니까? [복제]
이 질문에는 이미 답변이 있습니다.
- IntelliJ는 19 가지 이상의 답변 에 마우스로 JavaDocs 툴팁을 보여줍니다.
방금 Eclipse에서 IntelliJ로 전환했습니다. IntelliJ에는 Eclipse의 한 가지 기능이 없습니다. 메소드 위에 마우스를 놓으면 Eclipse가 javadoc 정보를 표시합니다. 표시하는 방법은 바로 가기- command+ 를 사용하는 것이라고 생각 J하지만 클릭하면 아래 스크린 샷과 같이 잘못됩니다. javadoc 정보를 빠르게 얻는 방법에 대해 알려주십시오. 적어도 메소드가 어떤 유형을 리턴하는지 알아야합니다.
사용 View
| 빠른 문서 또는 해당 키보드 단축키 (기본 : Ctrl+ Q윈도우 / 리눅스 및 Ctrl+ J맥 OS 또는 F1최근의 IDE 버전). 자세한 내용은 설명서 를 참조하십시오.
| 코드 에서 명시 적 (바로 가기로 호출) 코드 완료시 자동 JavaDoc 팝업을 활성화 할 수도 있습니다. | | ( 자동 팝업 설명서 ) :Settings
Editor
General
Code completion
빠른 문서를 보는 또 다른 방법은 마우스 이동입니다 .
버전 13.1 이상에는 해당 설정이 있습니다.
로 이동 File/Settings
, IDE Settings / Editor
다음 ✔ Show quick doc on mouse move
.
버전 14.0 이상 :
로 이동하여 File/Settings
를 Editor
클릭하십시오 General
. 아래로 스크롤 한 다음 ✔ Show quick documentation on mouse move
.
또는 커서를 항목에 놓고 JavaDoc을 사용하여 표시 할 수 있습니다
CTRL+Q
기본 바로 가기입니다.
편집 : Mac 에서 Methical이 언급했듯이 바로 가기는
CTRL+ j( ^+ j아님 ⌘+ j)
마우스가 요소 위에있을 때 빠른 문서를 보여주는 멋진 기능이 있습니다.
IntelliJ 14
Editor / General-> 마우스 이동에 대한 빠른 문서 표시
이전 버전
idea.properties 파일에 다음 행을 추가하십시오.
auto.show.quick.doc=true
Eclipse 기능을 최적으로 미러링하려면 다음 설정을 사용하십시오.
- IDE Settings / Editor- > Other. 마우스 이동시 빠른 문서 표시
- IDE 설정 / 편집기 / 코드 완성 -> 자동 팝업 문서
To see the javadoc in the autocomplete menu, hit '.' to get the popup, then hover over the object you are working with, once you get the javadoc popup, you can select an item in the popup to switch the javadoc over. Not ideal... But its something.
As another note. The search functionality of the options menu is very useful. Just type in 'doc' and you will see all the options for doc.
Also, searching for "autopopup doc" will not only find each of the options, but it will also highlight them in the menu. Pretty awesome!
Edit: Going beyond the initial question, this might be useful for people who just want quick and easy access to the docs.
After using this for a few more days, it seems just getting used to using the hotkey is the most efficient way. It will pop up the documentation for anything at the spot of where your text input marker is so you never have to touch the mouse. This works in the intellisense popup as well and will stay up while navigating up and down.
Personally, Ctrl+Q on windows was not ideal so I remapped it to Alt+D. Remaping can be done under IDE Settings/Keymap. Once in the keymap menu, just search for Quick Documentation.
Configuration for IntelliJ IDEA CE 2016.3.4 to enable JavaDocs on mouse hover. I am running IntelliJ IDEA on Mac OS but believe that Linux/Windows should have similar options.
Autopopup docs: IntelliJ IDEA
> Preferences
> Editor
> General
> Code Completion
Documentation on mouse move: IntelliJ IDEA
> Preferences
> Editor
> General
NOTE: Please hit Apply button to apply these settings
Go to Settings -> Editor -> General then enable Show quick documentation on mouse move
IntelliJ IDEA 15 added this feature
Now it is available as EAP.
As you can see in the picture below, the caret position doesn't influence the cursor position:
This feature was implemented in IntelliJ IDEA 15 142.4675.3 Release Notes.
For me, it wasn't just getting the javadoc window to open, but also getting the complete javadoc to present. You may still get a sparse javadoc that is based solely on the method signature if you are importing libraries from a Maven repository and do not tell Idea to include the javadocs in the download. Be sure to tick the "JavaDocs" option in the "Download Library From Maven Repository" dialog, which can be found under Project Structure -> Projtect Settings -> Libraries.
The closest to Eclipse will be Ctrl+Button2 Click (Scroll click)
It's called Quick Doc in IntelliJ, I wish guys from JetBrains one day add quick doc like Eclipse with Ctrl+Mouse Move it's so much better.
In my case only with only mouse move is a bit annoying, so if you search in Preferences/Settings --> Keymap for "quick documentation" you will find:
- Win-Linux: "Ctrl+Q" and "Ctrl+Button2 Click" (Scroll click)
- Mac: "Ctrl+J" and "Ctrl+Button2 Click" (Scroll click)
I have noticed that selecting the method name and pressing F2(Quick Documentation) dispalys it's JavaDoc. I am using Intellij 2016, and Eclipse Keymap
참고URL : https://stackoverflow.com/questions/11053144/how-to-see-javadoc-in-intellij-idea
'Programming' 카테고리의 다른 글
HTML 양식을 중첩 할 수 있습니까? (0) | 2020.02.18 |
---|---|
Java에서 XML을 예쁘게 인쇄하는 방법은 무엇입니까? (0) | 2020.02.18 |
LINQ to SQL의 내부 조인 구문은 무엇입니까? (0) | 2020.02.18 |
Maven 저장소에서 소스 JAR 가져 오기 (0) | 2020.02.18 |
'정적'키워드는 클래스에서 무엇을합니까? (0) | 2020.02.18 |