• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create multiple run configurations in VSCode

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings
 I am trying to update the launch.json file for a java project so I can run it with different input files inside the same folder as the java files, and have been following this link with no success.
Here is my launch.json file:


The input files are rather large, but here is a snipet of one:
"63674,55705,58985,75116,51746,80073,15135,"

Here is how I am trying to run each configuration:


I have to say that I completely understand if you say this is more of IDE question and or JavaScript. I figured I try to see if anyone else has done this successfully. I am on a linux platform btw. Thanks in advance.
 
Marshal
Posts: 4475
569
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use VSCode all the time, but never tried running anything from it.

It seems from the menu, choose: Run -> Add Configuration ..., and then add a lines for your args.

For example:
This was my data file (words.txt):
This was my code:
This was the output:
 
Sam Muller
Ranch Hand
Posts: 36
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Worked like a charm. Thank you so much.
reply
    Bookmark Topic Watch Topic
  • New Topic