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

[ENHANCEMENT] Option to Prepend Namespace to Keywords Automatically #328

Open
jwyffels2 opened this issue Oct 9, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@jwyffels2
Copy link

Is your enhancement request related to a problem? Please describe.
I am frustrated that when using auto-complete I cannot automatically prepend the namespaace as it often leads to bad practices on the team. It is also kind of annoying when I have to backtrack to add the namespace myself. to ensure consistency etc

Describe the solution you'd like
Have a toggle/boolean in the VsCode settings that allows auto-complete to prepend the namespace
Describe alternatives you've considered
I tried enforcing it manually or making a linter to catch it, but it would honestly just be easier if I can force it

Additional context
Add any other context or screenshots about the feature request here.

@jwyffels2 jwyffels2 added the enhancement New feature or request label Oct 9, 2024
@d-biehl
Copy link
Member

d-biehl commented Oct 10, 2024

That sounds like a great idea, and I will include it, but you don’t have to be frustrated ;-)

It might also be a good idea to add a QuickFix that automatically handles this for the selected keywords.

And by the way, do you know the shortcut CONTROL+ALT? It shows the namespaces where they aren’t indicated. You can also enable it fully so that you won’t have to add it manually anymore.

In your settings.json, you can add the following:

    "[robotframework]": {
        "editor.inlayHints.enabled": "on",
    },
    "robotcode.inlayHints.parameterNames": true

With the last setting, robotcode.inlayHints.parameterNames, you can toggle the inlay hints for parameter names on and off.

@jwyffels2
Copy link
Author

Thank you and no I didn't know that appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants