visual-studio


vs code run command at launch.json


I was wondering if theres a way to command a ssh command when a project with .vscode/launch.json is establish? something like "ssh -i xxxxx"
Or is it possible to create a command that you can run from the F1 pop up, something RunCustomCommandxx
You can define a task in your tasks.json file and specify that as the preLaunchTask in your launch.json and the task will be executed before debugging begins.
Example:
In tasks.json:
{
"version": "0.1.0",
"tasks": [{
"taskName": "echotest",
"command": "echo", // Could be any other shell command
"args": ["test"],
"isShellCommand": true
}]
}
In launch.json:
{
"configurations": [
{
// ...
"preLaunchTask": "echotest", // The name of the task defined above
// ...
}
]
}
Tasks documentation: https://code.visualstudio.com/docs/editor/tasks
Launch configuration: https://code.visualstudio.com/docs/editor/debugging#_launch-configurations

Related Links

Visual Studio 2010 hangs when compiling .asm
adding asp application to Vs 2010 and debugging it
Visual Studio Command Prompt gives “\Common was unexpected at this time”
How to Create the Power Set (Combinations) of the Infinite Set in F# using Sequences?
Visual Studio 2010: CopyDirectory or xcopy to copy Whole Directory
32bit COMin VS 2010
The 32-bit version o fthe Visual Studio Remote Debugging Monitor cannot be used to debug 64-bit processes?
Unable to link in C++/CLI application
Is Entity Framewok installed with my Visual Studio 2010?
Include in project function sets the Build Action for some files to None
Driver menu not visible in Visual Studio 11
charting for Visual Studio 2010 Express
How to decrease the building time for Visual Studio
I am using visual studio as my main IDE.I want to format jscript code in visual studio but i didn't get option
Visual Studio won't load the website project if homepage is not working?
Access IIS 7.5 Express started by Visual Studio 2010 from VMWare Guest

Categories

HOME
jboss
functional-programming
bots
postgresql-9.4
amp
bittorrent
selection
gtk
swarm
powermock
ex
pushdown-automaton
fosuserbundle
boomi
device
mod-wsgi
beego
sap-lumira
gravity-forms-plugin
code-climate
microprocessors
fotorama
quickcheck
ms-media-foundation
custom-keyboard
des
pdfnet
mv
iscroll
sbjson
utf
classnotfoundexception
coverage.py
jshint
absolute
section508
xcglogger
photoswipe
punctuation
business-rules
kendo-treeview
xmlbeans
nvda
fiber
right-to-left
codecharge
mathnet
gravatar
as3-api
m4
phpquery
smart-tv
google-maps-api-2
dsa
swagger-maven-plugin
componentart
console.log
rebar
inputbox
multivariate-testing
quantify
distributed-r
air-native-extension
wso2bam
lsa
virtual-channel
quickgraph
postgres-xc
node.js-stream
jacob
xs
rikulo
dibs
office-app
onconfigurationchanged
audiotoolbox
coordinate
thejit
uipangesturerecognizer
eai
rtti
gui-designer
html-generation
webclient.uploaddata
parentid

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App