I want to create a desktop icon in vscode that will open a text file in my journal that I use on a daily basis.
All I need to do is run the following command.
code –new-window “diary.txt”
But I cannot open the terminal every time I write a diary.
I want the above command to be executed by simply double clicking on the icon I have placed on my desktop.
I want to create a diary.command file, grant execute permission to the
I have described the above command.
The terminal window remains open at the same time as vscode.
I cannot change the settings of the terminal itself.
In windows, this can be easily accomplished by creating a shortcut to the exe file and opening the properties screen.
I mentioned “diary” as an example.
In fact, it is essential to execute any command line in hidden mode.
So I am not looking for answers such as using vscode extensions.
Security-wise, there should be no problem since I will be triggering the double-click on the icon myself.
I am not talking about automatically executing the command in hidden.