Setting up VSCode for Moodle™ Development

Поделиться
HTML-код
  • Опубликовано: 23 авг 2024

Комментарии • 10

  • @MichaelMilette
    @MichaelMilette 10 месяцев назад +1

    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
      @LMSCloud  10 месяцев назад

      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

  • @bodaciousmos
    @bodaciousmos 3 месяца назад

    why does the mdlcode doesn't show up in visualstudio I'm confused it is there in your video

  • @MichaelMilette
    @MichaelMilette 10 месяцев назад +1

    There are also several dependencies that need to be in place in order to get the "npx grunt jsconfig" command to work.

    • @LMSCloud
      @LMSCloud  10 месяцев назад +1

      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

  • @marijadanek
    @marijadanek 8 месяцев назад +1

    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!

  • @hugoribeiro874
    @hugoribeiro874 6 месяцев назад

    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?

  • @joaom224
    @joaom224 3 месяца назад

    Hello sir, how do you upload this into moodle in the site?

    • @LMSCloud
      @LMSCloud  3 месяца назад +1

      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

    • @joaom224
      @joaom224 3 месяца назад

      @@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.