It's happened a few times before that I've opened the same file twice and forgotten about it. Meaning I was editing the same file in both panes, which means two versions of the same file. This led to bugs and me not understanding why me code was not being run properly.
Is there a setting which prevents having the same file open twice?
First, you can click on the divider bar at the top of the scroll bar on the right side of your editor window. Dragging that bar down divides your code window into two panes (one on top of the other), which you can scroll through independently.
You can stop any running command by pressing Ctrl + C on your keyboard.
I submitted this PR, and you can now use the setting:
"workbench.editor.revealIfOpen": true
It looks like under Edit-Preferences there is a checkbox for the setting, Workbench - Editor: Reveal If Open:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With