Excellent tutorial on setting up VSCode. Thank you for sharing! Note that you need to run "composer install" after cloning moodle-plugin-ci or you will not be able to run phpcs as described in the video. Here are a few additional extensions that I find useful: 1) Show functions --- very useful, especially when working with Moodle's larger libraries. 2) Thunder Client --- useful tool when developing and debugging Moodle web services/REST API. 3) IntelliPHP --- AI Autocomplete for PHP can be helpful. No API keys are required. 4) Moodle Snippets --- Snippets for Moodle functions. 5) Moodle - Snippets & autocomplete I've also tried "Moodle Pack" but it breaks VSCode's ability to comment out HTML because it changes the HTML format to HTML (Mustache). Mustache has a different way of commenting. I would re-install it if this bug was fixed.
@LMSCloud Жыл бұрын
hi Michael, thanks for the feedback. In the video (and in the linked documentation) I use the command "composer create-project" - it clones moodle-plugin-ci AND runs composer install. No need to run it separately
@MichaelMilette Жыл бұрын
There are also several dependencies that need to be in place in order to get the "npx grunt jsconfig" command to work.
@LMSCloud Жыл бұрын
yes, absolutely. We did not show grunt setup, but it was mentioned in the beginning of the video that phpunit and grunt were already installed, which means that "php composer.phar" from the moodle folder was possible and also "npx grunt" (or just "grunt") was also working
@marijadanek11 ай бұрын
Could you create a video on how to actually develop a simple plugin? Most importantly I think, how to actually run the code and see changes you make in code show up on your local moodle server? Thanks!
@hugoribeiro8748 ай бұрын
Great tutorial! Thanks. So there's no easy way of fixing errors/warnings on save? Do you suggest running phpcbf in the command line only?
@bodaciousmos6 ай бұрын
why does the mdlcode doesn't show up in visualstudio I'm confused it is there in your video
@joaom2246 ай бұрын
Hello sir, how do you upload this into moodle in the site?
@LMSCloud6 ай бұрын
Hello! If I understand the question correctly, you want to use VSCode with MDLCode extension for the remote codebase? In this case you can install a "Remote - SSH" extension for VSCode and access your site code remotely. Once you do it, you can install other extensions, such as MDLCode. More information about the SSH extension marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh
@joaom2246 ай бұрын
@@LMSCloud Thank you sir! The reason for the question is that I am creating the final project for the Computer Engineering university course and any help is welcome.