I’ve been trying to learn Ruby programming language from the tutorial of freecodecamp but found out that Atom is basically dead. So I decided to use VSCode, everything goes well until I get to the part where I have to ask for user input. When I run it, nothing appears on the terminal.
Mind you, I’m very new to all of this. What can I try next?
2
Answers
I run it fine by (in the terminal)
What are you using to run your sourecode?
If you are using VSCode, you need to install:
Ruby language on your Windows box
Ruby extensions for VSCode
Once you get this working, open the "Explorer" widget on the left side of VSCode so you can see the files.
Right click on the Ruby file
userinput.rb
and choose "Open in Integrated Terminal"Once in the terminal, run it like so:
ruby userinput.rb
Hope this helps!