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 Setup Project— adding prebuild step
How to programmatically create a Quick Campaign in MS Dynamics CRM
How can I use GDB from inside Visual Studio C++ (Express) to debug my GCC Makefile projects?
Click to activate VS2005 tool panes in Vista causes double-click
Why won't Visual Studio Tester Edition run my web tests?
How do I manage many configurations in Visual Studio?
Howto Speedup Visual Studio(2005/2008) Toolbox initialization
Upgrading Compact Framework 1 app from VS 2003 to VS 2005 breaks form designer?
VIsual Studio - How to change the return value of a method in the debugger?
How to call Nunit from Visual Studio in a batch file
VS2005: Assembly '<assembly>' is incorrectly specified as a file.
Attach to IIS7 with a macro?
What should I look out for when migrating a project from VS2003 to VS2005
Pascal syntax highlight in Visual Studio?
How to unit-test a file writing method with Visual Studio's built-in automated tests?
Medium/Large solution - Visual Studio Build process - Advice needed

Categories

HOME
protocol-buffers
mod-rewrite
matrix
facebook-messenger
focus
android-fragments
plpgsql
typeerror
azure-mobile-services
u-boot
azure-logic-apps
lc3
grocery-crud
dhcp
supervisord
uima
asciimath
jaspersoft-studio
error-logging
pyopencl
webviewclient
hevc
acrobat
boolean-logic
materialize
fatfs
mdns
copy-protection
d3.js-v4
commonsware-cwac
john-the-ripper
epplus
knights-tour
advanced-filter
spinner
mars-simulator
google-now
praat
slideshow
newtons-method
oauth2-playground
classnotfoundexception
robust
access-denied
nuclio
linq-to-excel
aws-kinesis-firehose
sharpdx
sigsegv
aurelia-fetch-client
algebra
controllers
cefpython
researchkit
s-function
jsf-2.3
nvda
raw-sockets
ajaxmin
frame-grab
flush
certificate-authority
django-validation
phpquery
algebraixlib
scala-macros
subview
xml-signature
sql-function
meteor-collections
webaii
jmenubar
insertonsubmit
insertion
microformats
bcdedit
statechart
examine
ip-geolocation
zend-pdf
audiotoolbox
clrprofiler
quartz-core
qtextbrowser
simile
jmenu
ognl
webresponse
libxslt
turbine
sscli
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