Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to get package and function together with code completion #7009

Closed
alp78 opened this issue May 30, 2020 · 5 comments
Closed

option to get package and function together with code completion #7009

alp78 opened this issue May 30, 2020 · 5 comments
Labels
autocompletion enhancement stale

Comments

@alp78
Copy link

@alp78 alp78 commented May 30, 2020

This would be handy for conflicting functions, debugging purpose, or communicating the code to others who are not familiar with used packages. Having to write down the packages manually is annoying and time consuming, it could be avoided with code completion.

this request has 2 parts:

1) option to include masked functions in the completion pop-up menu

Example:

x magrittr::set_names() masks purrr::set_names()

while typing set_n and tab in the text editor, we only see the unmasked function magrittr::set_names() in the completion menu. I'd like to be able to pick the one I need from the menu.

2) option/shortcut to get code completion to write down both package::function()

Example:

for magrittr::set_names() when tabbing twice set_n in the text editor, code completion only writes down the function set_names(). I'd like an option/shortcut to get completion to write down the full designation magrittr::set_names().

@alp78 alp78 changed the title option to get package and function together with code completion in RStudio option to get package and function together with code completion May 30, 2020
@Bijaelo
Copy link

@Bijaelo Bijaelo commented May 31, 2020

feature 2) could further reduce time while creating packages, where prefixes are highly recommended.

@ronblum
Copy link
Contributor

@ronblum ronblum commented Jun 2, 2020

@alp78 Thank you for the suggestions, and @Bijaelo for the added reason. We'll review them as we continue developing RStudio.

@alp78
Copy link
Author

@alp78 alp78 commented Jun 2, 2020

@alp78 Thank you for the suggestions, and @Bijaelo for the added reason. We'll review them as we continue developing RStudio.

Great, looking forward!

@stale
Copy link

@stale stale bot commented Feb 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale label Feb 5, 2021
@stale
Copy link

@stale stale bot commented Feb 19, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletion enhancement stale
Projects
None yet
Development

No branches or pull requests

3 participants