skip to Main Content

Sometimes I look at code that goes like this:

let x =   
  (* 1 million lines of code *)
  let y =
     (* 5 billion lines of code *)
  in
  (* 5 lines of code *)
in

and I find myself scrolling with my cursor on the right indentation to find where a let ... in starts or ends. Is there a better way to do this in VSCode?

2

Answers


  1. I am not really sure if such a feature exists in VSCode but you can try this extension which I recommend Block Travel it doesn’t jump to the start or the end of a block code it seems to be so hard to understand when a block begins and ends but it lets you jump up or down to the nearest all white line.

    by default the shortcuts are :

    alt+up
    alt+shift+up
    alt+down
    alt+shift+down
    

    but you can update them.

    Login or Signup to reply.
  2. I have a treat for you: the Navi Parens extension. It is language-agnostic (but has support for OCaml comment and array delimiters in the "Raw brackets" mode).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search