We can have editor.action.jumpToNextSibling and editor.action.jumpToPrevSibling
This moves the cursor to the word end of next or previous symbol at the same nest level
eg, on executing this action
at a switch case name entry
moves to each subsequent case entries ( cursor at the end of the name of each case )
skipping the lines in the within the case entry
at nested condition
moves to corresponding else or else-if ( cursor at end of the keyword )
skipping the lines in the if block, even any nested if-else block
at json object
moves to subsequent key entry ( cursor at end of key name )
at line of function declaration
moves to next function declaration ( cursor at end of function name )
if there are no lines to skip, ie there are no child or nesting or inner scope of a line
the action simply moves to the symbol in the next line ( cursor at end of symbol name )
like in case of list of variable declaration, moves to end of next declaration variable name
jump to parent (editor.action.jumpToParent)
similar but moves up a level that code is contained in ( cursor at end of function name, if / else, switch-case name, etc )
jump to child (editor.action.jumpToChild)
similar moves down a level if present or no action
This is could be great feature in code navigation. as in large code bases or files with lot of lines, we can quickly move to corresponding else block with different if/ else in between, or in deeply nested json object ( navigate to subsequent keys at a particular inner nest level ), etc
We can have editor.action.jumpToNextSibling and editor.action.jumpToPrevSibling This moves the cursor to the word end of next or previous symbol at the same nest level
eg, on executing this action
if there are no lines to skip, ie there are no child or nesting or inner scope of a line the action simply moves to the symbol in the next line ( cursor at end of symbol name ) like in case of list of variable declaration, moves to end of next declaration variable name
jump to parent (editor.action.jumpToParent)
jump to child (editor.action.jumpToChild)
This is could be great feature in code navigation. as in large code bases or files with lot of lines, we can quickly move to corresponding else block with different if/ else in between, or in deeply nested json object ( navigate to subsequent keys at a particular inner nest level ), etc
Thank you