Bookmarks are deleted #5994
-
When Rubberduck 'Indent' feature is used, all bookmarks are deleted. Any fix for this in the future? very annoying. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The VBIDE API provides exactly zero hooks for bookmarks, so there is exactly zero way of knowing where they are, let alone to manipulate and/or restore them. Any VBIDE add-in that rewrites code in the editor will have the same issue, including the original Smart Indenter add-in. I would recommend leveraging the TODO marker feature instead of using VBIDE bookmarks; you can easily configure a list of case-insensitive comment markers (defaults are TODO, NOTE, and BUG) that Rubberduck will recognize as such, and present in an organized list that's much more practical and useful than VBIDE bookmarks. |
Beta Was this translation helpful? Give feedback.
-
Thank you Mathieu,
I'm an amateur VBA programmer, My go to langue is C#. Now I see what a job your team has embedding your add-in in VBA.
Rubber Duck makes VBA much more pleasant to use, thank you all. I'll take your advice and use the markers; don't know why I didn't try them before.
Since I'm a novice, I'm not comfortable posting dumb question on Rubber Duck GitHub, Is It ok to send emails to you if I don't abuse the privilege? I'm an old-time programmer now 68 years old, obsolete languages Fortran, Cobol, DEC Diboll, RPG ext.
Dallas Smith
Holland Michigan
Sent from Outloo<http://aka.ms/weboutlook>
…________________________________
From: Mathieu Guindon ***@***.***>
Sent: Friday, July 1, 2022 4:38 PM
To: rubberduck-vba/Rubberduck ***@***.***>
Cc: Dosman54 ***@***.***>; Author ***@***.***>
Subject: Re: [rubberduck-vba/Rubberduck] Bookmarks are deleted (Discussion #5994)
The VBIDE API provides exactly zero hooks for bookmarks, so there is exactly zero way of knowing where they are, let alone to manipulate and/or restore them.
Any VBIDE add-in that rewrites code in the editor will have the same issue, including the original Smart Indenter add-in.
I would recommend leveraging the TODO marker feature instead of using VBIDE bookmarks; you can easily configure a list of case-insensitive comment markers (defaults are TODO, NOTE, and BUG) that Rubberduck will recognize as such, and present in an organized list that's much more practical and useful than VBIDE bookmarks.
—
Reply to this email directly, view it on GitHub<#5994 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZ4C456NIVYGDO3VEHHLWS3VR5JLNANCNFSM52NEFJMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It may be intimidating at first to ask but go ahead. We're all learning and your question could become and answer for someone else. There is a chat room https://chat.stackexchange.com/rooms/14929/vba-rubberducking several members frequent if you're still nervous about posting openly on GH. Edit: Confidence booster |
Beta Was this translation helpful? Give feedback.
The VBIDE API provides exactly zero hooks for bookmarks, so there is exactly zero way of knowing where they are, let alone to manipulate and/or restore them.
Any VBIDE add-in that rewrites code in the editor will have the same issue, including the original Smart Indenter add-in.
I would recommend leveraging the TODO marker feature instead of using VBIDE bookmarks; you can easily configure a list of case-insensitive comment markers (defaults are TODO, NOTE, and BUG) that Rubberduck will recognize as such, and present in an organized list that's much more practical and useful than VBIDE bookmarks.