Opening first few lines of a huge file with VS Code

I’m currently doing some work looking at the GeoNames dataset.

However, I found I could use `head` command, which reads the first n lines of a file, and pipe the output to `code -` (which is the command for opening vs code and reading the output from another program)

For example:

$ head -3 allCountries.txt | code –

This opens the first 3 lines of `allCountries.txt` in vs code. Handy!