Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97387

VSCode use quotes to execute script in terminal

$
0
0

I have a Python script at a path that includes an &-sign and I would like to run my Python file in quotes with the run-button.

I'm using Windows and in the cmd I could do python "c:\path_with_&\sript.py" and it would work. When I click the run symbol in the VSCode editor to run the script in the terminal, I get the error that the &-sign is not valid.

Can I, for convenience, configure VMCode to add quotes to the path so I can run my script? Changing the path name is no option unfortunately.

Thanks!


Viewing all articles
Browse latest Browse all 97387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>