VSCode open specific file on startup

倾然丶 夕夏残阳落幕 提交于 2019-12-24 02:25:17

问题


Is it currently possible to set a specific file to open on startup in VSCode? I have the 'To Do Tasks' extension installed and I want to open my TODO file by default each time I load VSCode.

Using Version 1.12.1


回答1:


You can either create some shortcut for command "code path/to/file.todo" or change link's options.

For example(windows):

link => properties => shortcut => target => "C:\Program Files (x86)\Microsoft VS Code\Code.exe" "D:/howto.todo"

vscode command-line



来源:https://stackoverflow.com/questions/43851364/vscode-open-specific-file-on-startup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!