I try to configure my editor VisualCode
to open it from the terminal but I get an error when I run from the terminal
git merge origin / master --allow-unrelated-histories
How could I solve it? Thanks!
You can open a Visual Studio project with the following command:
# Situandose en la carpeta que desea abrir Visual Code
code . # To open in Visual Studio Code.
open ~/.bash_profile
Edit the same by adding the following:
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
source ~/.bash_profile
Close the terminal completely and reopen it by launching the code command which, this time, will open the Visual Studio Code, with and without parameters.