I set bookmarks through my code. When I call the AStyle "Source code formatter" plugin, all the bookmarks are removed.I'd say this is not easily possible. AFAIK astyle get a "dump" of the source-code, re-formats it and returns it as a new "dump". It works just as the command-line astyle and doesn't know about bookmarks and stuff. So one would need to patch astyle to incorporate this additional functionality and I don't believe that this is a good way because it requires a lot changes and you would have to incorporate this again and again on new astyle upgrades.
when astyle changes the code, the bookmarks don't need to change too,But does that make sense? If astyle changes the code like e.g.:
they could stay at the linenumbers where they were before.
void my_method() {
dostuff()
}
void my_method()
{
dostuff()
}
when astyle changes the code, the bookmarks don't need to change too,But does that make sense? If astyle changes the code like e.g.:
they could stay at the linenumbers where they were before.
OK, it seems I finally got it. It required a hacky check but it seems to be working pretty nice by now.Cooooool! 8) (Compiling now...)