Preferred Text Editor command details to run specific parameters for the editor
Hey everyone,
I post my question here as I think it can be useful for many people (and I couldn't find any solution).
I would like to use Visual Studio Code as my favorite editor in Quartus. I can write the path and the options to open the file at the corresponding line, but I want to set the folder that opens VSCode in order to have my environment settings.
You can find the Quartus setting in Tools > Options > Prefered Text Editor
However, by not knowing how the field works, I cannot fix the issue I am facing (and I tried for long to fix it)
I want to run the following to estimate which folder to open for VSCode. It perfectly works in Powershell, but not when using Quartus. It just opens files with the names from parts of the command.
Here is the command:
"C:/Users/me/AppData/Local/Programs/Microsoft VS Code/Code.exe" $(If ((Get-Location).ToString().Contains('folder1')) {'C:/Users/me/Documents/folder1'} Else {'C:/Users/me/Documents/folder2')
I am using Quartus 22.2 for Windows 10. I couldn't even make it work writting
"C:/Users/me/AppData/Local/Programs/Microsoft VS Code/Code.exe" $(Get-Location.ToString())
Regards