Unfortunately you can’t open two notes side-by-side on Joplin.
In your case you could try VScode plugin. Take a look here.