Use a double left-click when selecting a file to prevent it from opening in preview mode—this should resolve your issue. If you want to view two files side by side in the same window, right-click on the file tab (e.g., index.js
or app.js
) and select Split Right from the context menu.