Registered Member
|
Currently, KDevelop support context navigation. My idea is to add a way to go to begin/end of block described by developer. Some systems uses (for example) documentation string. This string must be placed in comments. Use the same method to extract block name and description. Look at this:
[code] void one_function(int *a, int *b) { if (*a == *b) { /* KDEV-HINE-BLOCK-NAME: Compare a and b KDEV-HINE-BLOCK-DESC: Compares a and b and returns if equal */ return; } { /* KDEV-HINE-BLOCK-NAME: Assigning b to a KDEV-HINE-BLOCK-DESC: Write value from b to memory pointed by a */ *a = *b; } } Few years ago I developed scripting language for Libgreattao. It support possibility to name of blocks of code. The idea was similar. Way? Because KDevelop could allow to fast navigate. It could display something like that: one_function / Compare a and b or: one_function / Assigning b to a So user could jump to end or beginning of selected block. Also, code will be more self-descriptive.
Lachu, proud to be a member of KDE forums since 2008-Nov.
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft