Sample Header Ad - 728x90

Terminal | Shortcut for Automatically Saving Files Created Using "code"

2 votes
2 answers
95 views
I have a question regarding a shortcut use of "code". My Goal is to simultaneously: 1. Open a new file in VS Code, and also: 2. Automatically save that new file to my current working directory Basically I want to execute "touch hello.c | code hello.c" in one command. Is there an alias, function or shortcut I can include in .zshrc to help automate this combination of steps?
Asked by Drew P (21 rep)
Nov 26, 2023, 08:08 PM
Last activity: Nov 26, 2023, 08:41 PM