Creating a file that will open another file in VS Code when it is double-clicked

Solution 1:

create bash file

#!/bin/bash
code '../todaysDate/fileIWantToOpen.js'

make it executable by running this command in the terminal chmod +x fileIWantToDoubleClick

double-click on it to open the file