Questions tagged [vscode-tasks]
Visual Studio Code Tasks can be used to run scripts or begin processes in order to leverage other tools to perform tasks from within Visual Studio Code.
vscode-tasks
588
questions
-5
votes
0
answers
43
views
Upgrading C++ version in VSCode [duplicate]
I'm developing a C++ program in VSCode and having issues with changing or updating the C++ version.
I've already tried changing the tasks.json file, as well as changing the cppStandard in Extensions ...
0
votes
0
answers
20
views
Run background task in vscode
I have a bash script that starts elasticsearch (./scripts/dev/start_elasticsearch.sh).
if I launch this script in a normal shell and at the end of it I close the shell Elasticsearch will still run in ...
0
votes
0
answers
13
views
VSCode non-terminating task before debug
For a little project, I'm using VSCode. To test email outputs, I use a script that just logs incoming SMTP messages.
Now, I'd like to start this script before launching debug. But using "...
-1
votes
0
answers
11
views
How to properly set user configuration for vscdoe?
I'm trying to setup vscode for python development but some configurations in the user config file are completely ignored.
Here's my config:
{
// General editor settings
"editor.formatOnSave&...
-1
votes
0
answers
31
views
How can I change the C++ standard version from `-std=gnu++14` to `-std=c++11` in VSCode Clang++ build tasks? [duplicate]
I'm wanting to run and debug C++ files in VSCode on macOS. However, I'm facing an issue:
When I click the Run C/C++ File button in the top right corner of the editor, it runs the following command in ...
-1
votes
0
answers
22
views
How to run combine tasks in Pycharm like in Vscode? [duplicate]
Hi there I have been big admirer of Pycharm and has been using pycharm for 3 years but I want to run multiple combines tasks like in vscode link here.
here is the tasks.json file
{
"version&...
0
votes
0
answers
23
views
How do I automatically connect to a docker on remote server when I open VSCode
At the moment for my personal setup:
The VSCode window that I never explicitly quit, I use it to first SSH to the remote server.
With the docker extension I then go ahead and attach the container to ...
0
votes
0
answers
22
views
how can i compile, run and move to a folder with tasks.json?
i have a problem, i have no internet, so i can't install an extension to do this:
-Compile a C++ script
-Open the executable
-Move it into a folder called Output
-All of this in the external terminal ...
0
votes
0
answers
45
views
vscode debugger wont stop on breakpoints
I'm trying to use the debugger to analyze a C program, but isn't working
this is launch
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing ...
0
votes
1
answer
33
views
VSCode: How to configure tasks to open browser after server task is ready
I am writing documentation on my project using mkdocs. I would like to automatically run mkdocs serve (compiles the docs and runs local web server) and open browser window(simpleBrowser.show).
The ...
0
votes
1
answer
19
views
vscode task checking for existence of environment variables
I want to create a vscode task that runs when I open a folder with vscode. The task checks for existence of an environment variable. If it exists, then do nothing, but if it does not exist, then the ...
1
vote
0
answers
17
views
Run VSCode task as another user
I'm running a simple script in a VSCode task like this:
.vscode/say_hello.sh:
echo Hello World, this is $(whoami)!
.vscode/tasks.yaml:
{
"version": "2.0.0",
"tasks&...
1
vote
1
answer
35
views
Is there a way to get tasks in VSCode to automatically run when connecting to a new branch and not just when opening the project folder?
I've successfully automated the running of tasks (./.vscode/tasks.json) when I open the project folder. But is there a way to automatically run that script of tasks when connecting to a new branch? I'...
0
votes
0
answers
51
views
Automating (activate Python virtualenv) with visual studio task does not work
I have a .env in workspace VSCODE with the following code:
echo "The .env file was triggered."
source ~/.local/bin/virtualenvwrapper.sh
workon app_3.12_virt_env
when I execute this file ...
-1
votes
1
answer
38
views
Why does my VSCode produce garbled executable file names when compiling C source code with Chinese characters as filenames using Mingw64?
Why is it that when I compile C language source code with Chinese characters as filenames in my VSCode, the resulting executable file name turns out to be garbled, but there's no issue when using ...