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.

Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems. Examples include the TypeScript Compiler, linters like ESLint and TSLint as well as build systems like Make, Ant, Gulp, Jake, Rake, and MSBuild.

These tools are mostly run from the command line and automate jobs inside and outside the inner software development loop (edit, compile, test, and debug). Given their importance in the development life cycle, it is helpful to be able to run tools and analyze their results from within VS Code. Tasks in VS Code can be configured to run scripts and start processes so that many of these existing tools can be used from within VS Code without having to enter a command line or write new code. Workspace or folder specific tasks are configured from the tasks.json file in the .vscode folder for a workspace.

Extensions can also contribute tasks using a Task Provider, and these contributed tasks can add workspace-specific configurations defined in the tasks.json file.

Website:

https://code.visualstudio.com/docs/editor/tasks

566 questions
-1
votes
2 answers

Vs Code Issue: no code output. how do i fix this?

I am very new to coding and am trying to write a practice script for webscraping in VS Code Editor. But every time i run the script i get this issue of there being no real output. Can you please advise on what the issue is? Note: the pink boxes are…
-1
votes
1 answer

How to know what file I am currently in/or editting, in VSCode Extension?

I am trying to make a personal website where all of my things are in, but I can't figure out this one, I want to let the website know what file I am looking at in vs-code, It's the same as the Discord RichPrecence extensions, but when I try to read…
user17750267
-1
votes
1 answer

Can't use code . and git commands at the same time

I am on Windows 11 and trying to learn the cmd prompt. I cant use code . and git commands at the same time. If I want to use code ., I have to path it first. After pathing code ., git commands don't work. So, I path them and as a result, I can't…
-1
votes
1 answer

How to get the location(path) of the unsaved/untitled new file created in vscode, using node js?

I'm new to creating extension in vscode. I am creating an extension that loads the file using 'fs' and make some changes to the file and write back the file. it works flawlessly for a file that is saved. But it shows: Error: ENOENT: no such file or…
-1
votes
1 answer

I Want to know the name of the fonts is used in vs code user setting

I want to know the name of the font which is used in vscode user settings
-1
votes
1 answer

VSCode, running multiple Gulp tasks

Evening, i've got an issue with running multiple Gulp tasks in VSCode, whereby only the first task is ever run, and the second is just ignored. Both tasks work individually when I 'Ctrl-Shift-B', but together, nada. Two really simple commands, one…
NewZeroRiot
  • 552
  • 1
  • 5
  • 22
-2
votes
1 answer

VS Code tasks.json : disable `promptString` input box if the command does not execute it

I have a command where $string_or_null_value is either a string or null. If null, the user is prompted an input box to enter its own value due to ${input:store_id}. The issue is that the input box is always prompted even when it's not required. I've…
Max
  • 169
  • 2
  • 11
-2
votes
1 answer

Link multiple files in Visual Studio Code (Ubuntu)

I don't understand where I am wrong. If I run my code through the run button I get this output: cd "/home/luca/develop/Cplusplus_course/Section13/" && g++ challenge.cpp -o challenge &&…
Luca90
  • 63
  • 1
  • 2
  • 12
-2
votes
1 answer

Error in Compiling C++. It's showing fatal error: Directory not found. Also .exe is not getting formed for the cpp file

On pressing the run button it is showing me this error. As a beginner, I have no idea what should I do next.
-2
votes
1 answer

How to compile a c ++ project on Windows in Visual Studio code?

There are many options known to work for building a c ++ project for Windows like Mingw-w64 and Windows Subsystem for Linux (WSL). There are also other options that can work but have not been thoroughly tested like a native compiler tool chain. I…
Dev M
  • 1,519
  • 3
  • 29
  • 50
1 2 3
37
38