Intellij-rust: Quick documentaion should contain link to the on-line docs

Created on 17 Oct 2017  路  3Comments  路  Source: intellij-rust/intellij-rust

PyCharm has a useful feature where it adds an "View external documentaion" link to the quick-doc popup (Ctrl+Q):

image

I think we should do the same for Rust, using docs.rs and https://doc.rust-lang.org/std/.

The entry point for the relevant feature is org.rust.ide.docs.RsDocumentationProvider.

E-medium E-mentor feature help wanted qdoc

Most helpful comment

Wow, turns out we have a dedicated shortcut for viewing external docs: https://www.jetbrains.com/help/idea/viewing-external-documentation.html, which is used by PyCharm, for example.

We need to do this as well, though it's E-less-easy, because I don't know off hand which API we should use.

All 3 comments

Wow, turns out we have a dedicated shortcut for viewing external docs: https://www.jetbrains.com/help/idea/viewing-external-documentation.html, which is used by PyCharm, for example.

We need to do this as well, though it's E-less-easy, because I don't know off hand which API we should use.

Looks like we need to implement ExternalDocumentationHandler.

This seems to be resolved (https://github.com/intellij-rust/intellij-rust/pull/2555).

Was this page helpful?
0 / 5 - 0 ratings