Open jano23 opened 1 week ago
If you are using VS Code, there's no built-in open-multiple-files setting that allows you to open multiple files directly from settings.json. Therefore, this configuration may not work as expected.
To achieve the behavior you're looking for (opening multiple files when you open a specific file), you might need to use an extension or a custom script. You can create a workspace with multiple files opened by default.
Open the first file in VS Code (first_file.asp).
Then, go to File > Add Folder to Workspace, and select the folder containing second_file.asp.
After that, go to File > Save Workspace As..., and save the workspace configuration.
The workspace configuration file (.code-workspace) can be manually edited to specify which files to open when the workspace is loaded. Open the .code-workspace file, and add an "filesToOpen" property:
{ "folders": [ { "path": "C:/folder" } ], "settings": {}, "filesToOpen": [ "C:/folder/first_file.asp", "C:/folder/2/second_file.asp" ] }
What I would like is to open a second file when I open the first file. Windows 11. What I have so far in settings.json: "open-multiple-files.files": [ { "file": "C:/folder/first_file.asp", "filesToOpen": ["C:/folder/2/second_file.asp"] } ] I expect second_file.asp to open when I open first_file.asp. What happens: second_file.asp does not open