Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you find yourself doing in depth coding of questions it can be helpful to have the full flexibility of a debugging suite available. VScode is a code editor and can help 1) find common coding errors (missing brackets and missing semicolons) and/or 2) change one aspect of code (say, a variable or number) and have that aspect change everywhere in the problem.

...

Here is VS Code catching a misplaced semicolon, note that it will highlight these simple mistakes immediately, and if the code is ran it will show exceptions.

The semicolon after "Math.abs(q)" is incorrect, hence the red underlining and syntax error.

Change All Occurrences

Let's say that I want to change all of the occurrences of a function. This is simple to do, hit the change all occurrences button:

...