In order to create code listing, please create a code block first. For example, if the language that you are going to input in the code block is python, use
```Python. Then click on the python button > add
renderAs=minted in the metadata. Then press "Done". The code will be displayed as minted the next time you export to PDF using template.