Type the following command to install the rubocop extension for VS Code, that will analyse the code directly in the editor: Now that you’ve installed VS Code, open a new folder and create a new file, let’s call it: ‘hello_ruby.rb’, then press F1 and the VS Code console command will appear: Not enough? It is open source! You can get it here: ĭouble click on the VS Code installer, and in few clicks we’re ready to go.
it has a marketplace where you can find a lot of extensions (that you can also develop and sell) like debuggers, themes and language support.I think that this editor is wonderful because:
Last year Microsoft released a great tool, that is Visual Studio Code (VS Code).
To install it, simply open a command prompt, and type the following: It will help you writing beautiful and clean Ruby code. Rubocop it’s a static code analyser, based on the community Ruby style guide. Now that Ruby is fully installed on your PC, let’s add a useful tool that will come in handy later: Click on ‘Install’ and we’re ready for the next step. I suggest you a complete installation, including Tcl/Tk support for building UIs. Ruby installer is a very handful installer for getting started on Windows in few mouse clicks, it will provide the full environment for start developing in Ruby. This has been the case for me today, I just wanted to break the routine, so I thought to myself: ‘why not start learning a new programming language?’.Īnd here we are: starting from scratch with Ruby.įirst things first, let’s start with the right tools for the job:ĭownload them both, and follow the next steps for getting started. Sometimes you just wake up and want to change something in the way you code.