Viewing Array Contents During Debugging in VS Code

After getting annoyed with adding a bunch of array indices to the watch list for a program that I was debugging, I went in search of a better solution. I came across an issue on the VS Code C/C++ Tools GitHub repo. Apparently, you can use the following pattern in the watch list instead


to see the contents of the array some_pointer of type int. Or, basically


Even better, you can use the following


Here's a screenshot of doing it manually

Manually adding array elements during

and here's a screenshot of using the shortcut

Shortcut of viewing array elements during

Much better.