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

[FEATURE] - auto suggestion for labeled bookmark #762

Open
Tobepeter opened this issue Nov 28, 2024 · 1 comment
Open

[FEATURE] - auto suggestion for labeled bookmark #762

Tobepeter opened this issue Nov 28, 2024 · 1 comment
Labels
depends on Depends on issues from VS Code enhancement need more info

Comments

@Tobepeter
Copy link

iOEiQDYn

I think when using label bookmarks, a default label string hint can be automatically generated based on the class name with current method name. This can reduce the time users need to think about naming.

Also, Maybe the naming inputbox can hover near the cursor? I think the inputbox at the top is a bit far away.

@alefragnani
Copy link
Owner

Hi @Tobepeter ,

If you use to put the cursor in the class or method name, you can play with the bookmarks.label.suggestion setting, and make the extension to use the selected text as the label of the bookmark.

The bookmark uses a position based approach. It is not aware of the (structure of the) source code you are working. You can have as many bookmarks as you want inside a class / function.

About using an input box near the code, it is currently not possible. There is no API available for that, yet. But I guess it could be available in the near future.

Hope this helps

@alefragnani alefragnani added depends on Depends on issues from VS Code need more info labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on Depends on issues from VS Code enhancement need more info
Projects
None yet
Development

No branches or pull requests

2 participants