Using the competition template on Visual Studio Code

How do I use the competition template on Visual Studio Code? It’s not recognizing files referenced in vex.h, and I can’t do anything. I am attempting to create a new file through Visual Studio Code (the other one was made in Vexcode v5 Pro) in order to see if it will work that way, but I can’t find the templates. Where would they be?

start by clicking the vex extension on the left


then click on new project

choose the options that fit (most likely v5 then C/C++)

here is where you can search for examples and templates. Alternatively, you can also import templates from vexcode pro v5 using the import button.

as for vex.h not being recognized, this is usually the result of not importing properly or not having the correct parent folder open causing the vex extension to not activate. You can check if its activated by checking the bottom left corner for these icons.
image

2 Likes

If you are doing it in Python, I made a template for my kids, kinda helps with their organization. I only say python cause I only have to worry about one page of coding for middle school kids, they can try C++ at high school if they want to continue it.

Thanks, I think it just wasn’t loading because I was on my school wifi

1 Like

I created a new file, but I’m still getting error squiggles (include error) for math.h in vex.h

I might have just forgotten to import vex or something. How would I check if the file has the required vex files?

image_2024-01-10_100502375
This is why I think that (the math.h error squiggles went away at least for now)

There are templates for Python, but only a few and the competition template doesn’t seem to be one of them. i was able to import, but now running into import errors.

i tried to enter a comment/issue for this, but i got an error on the comment and issue submission…

I was happy enough with VexCode as a learning environment for students, but lack of support for any sort of source control is too much of a problem. :slight_smile:

1 Like

This is a post from 7 months ago. No need for answering it again or reviving a post :upside_down_face:.

You can find the latest posts through “Topics” on the left bar on desktop or the home page (click on the VEX icon).

Also, Happy Birthday, Captain OrangeJuice!

2 Likes