Okay, after we have successfully installed the Mojo programming language, we should be able to reactivate it now. So when I say mojotest.mojo my test file is opened and it says Mojo on Python 3.11 is running with 2GB of Ram. That is because inside of the file we have defined a main function and a print function with this text here. So basically everything works. But of course it would be much better to have a real IDE that's an integrated development environment or in other words, an editor that supports better syntax highlighting and stuff. And there is one that is very popular and that is called Vs code from Microsoft.
So let's install it. This might take a little while. You can see this is the Debian package installer as I'm using Debian twelve Q4OS. So let's wait until the installation is finished. I think that other IDEs might be able to do the syntax highlighting.
For example, I'm using one that is called Sublime. But for the Microsoft version there is something that is called Extensions. And when you open it and type in Mojo, you should see this one here. This is Mojo for Visual Studio code.
Or in other words, you can use the Microsoft Visual Studio editor to get syntax highlighting and run your Mojo file. So let's open the test mojo file that we have created. Yes, I want to trust this one. There we are. And the syntax highlighting already is working.
When we hover over the print function, we get a description. It also works for the main function. I will try to run this file without debugging. And now it says I need to pick a debugger. So let's pick this one.
But actually, whatever I do, it doesn't really run the file. So for now, let's open the terminal. There we are. And I will add a little word here. Save the file and run it below in the terminal.
And you can see that we have updated the output here. So at least to get the function description and to get proper highlighting, this is a good choice. So by now we have a working environment. We can use the Visual code editor and run our files. That's it for this video.
Thank you for watching and I will see you in the next one.
In questa pagina del sito puoi guardare il video online LEARN MOJO TUTORIAL - 10 VISUAL CODE EDITOR MOJO IDE WITH SYNTAX HIGHLIGHTNING SUPPORT della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Learn Mojo Tutorial - Simple AI Tutorial 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 167 volte e gli è piaciuto 2 spettatori. Buona visione!