New is simple powershell script that
simplify file/folder creation
inspired from linux touch command
new folder <foldername> [-flags]
new file <filename> [-flags]
new folder foo
this will create a folder called foo :)
new folder bar -git -code
this will create folder called bar and initilize git repo and open vscode at once
new file index.js -code -overwrite
this will create js file and open it in vscode
overwrite flag with force overwrite the file
new folder
why not ? :3
you make things more fast
- download the new.ps1 file
- place it in folder such as
c:\scripts
- add
c:\scripts
to your environment Path
Flag | description |
---|---|
cd | will cd into the folder |
code | open the folder in vscode |
git | initialize git repository |
overwrite | will force overwrite the folder |
h | to show help message |
Flag | description |
---|---|
code | open the file in vscode |
overwrite | will force overwrite the file |
h | to show help message |