Sometimes I want to open the same file multiple tabs, each tab focusing on a different line/method, in Eclipse this is easy, but I haven't found a way to do it in VS Code? screenshot from Eclipse doing it:
Split view isn't enough, right now I'm on a 14" laptop with no extra display available, the laptop screen is too small to comfortably use split view.
Since Microsoft has no plans to implement the feature request, an alternative solution is to create a symlink of the file: ln -s code.c code.ln.c
and have *.ln.c
in .git/info/exclude
then VSCode threats them as 2 different files, even though editing 1 of them is instantly reflected in the second (-:
Edit: this also requires you to put in settings.json
"files.autoSave": "onFocusChange",