Opening a Folder and File in Vscode from Terminal

VSCode offers the code command (code-insiders for the beta channel) to open files and folders from terminal
these are some possible usage: code myfile open a single file in the current folder code a/b/c/d/text.sh open a single file code myFolder opens a folder code . opens current folder
what if we want to open a folder and also a file within in?
use code pathtofoder --goto pathtofile