Is there a jump to next inner block, or jump out of block command?
-
foreach (sum > product) {
//block 0
if (x > y) {
|
// block 1
if (y > z) {
// block 2
}
} // end of block 1
}Suppose cursor was |. You’re inside of block 1. Next inner block would be if (y > z), or block 2. Jumping out should either send you to the end of block 1. Jumping backward would be like, to the start of block 0, maybe? or to the start of block 1, idk.
Note++, has this implemented?
-
Perhaps your question is better-asked with code that is formatted reasonably, e.g.:
foreach (sum > product) { //block 0 if (x > y) { | // block 1 if (y > z) { // block 2 } } // end of block 1 }
In Notepad++, it might appear like this:
Now that we have a good visual on it, your question probably becomes “Is there a way to jump to the various fold points?” The answer is no, not in native Notepad++. But it could be done via scripting.
-
If your “blocks” are separated by a line break, you can use the commands:
SCI_PARADOWN Ctrl+] SCI_PARAUP Ctrl+[
as they navigate between paragraphs.