> For the complete documentation index, see [llms.txt](https://hkust-robotics-team.gitbook.io/hkust-robotics-team-software-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hkust-robotics-team.gitbook.io/hkust-robotics-team-software-tutorial/tutorial/tutorial-0-self-learn-basic-c/basics-of-c/where-do-i-write-my-code.md).

# Where do I write my code?

Where to start coding?

## Where do I write my code?

Since some of you may not have installed an **IDE** (Integrated Development Environment) on your computer yet, you may use an online version to write your code. [**Repl.it C Language**](https://repl.it/languages/c) is a good choice.

[**VSCode**](https://code.visualstudio.com/download) is also a very good code editor with various extensions to increase its functionality. However, it is difficult to set up VSCode for STM32 programming, hence we will not teach that here. It is not necessary to install VSCode for the sake of our tutorials.

For robotics programming, we will teach you to install [**CubeIDE**](https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/stm32cubeide.html?dl=mDz41Ame3rsvInWnnBOgtQ%3D%3D%2CcZwAba%2BIy%2FG8DrU77U5EEghQuKOCpNSACfvi2bwE08ZENmt9WBEXUiTFvdmySC1TNkz3H0dEAD1mlAg7m066zK%2F%2FEiRsAU9fsh2Z8qjWUeqproTDa74wIxaZNYl1hc8eF0gQr7rlIcOFvgurma6ZSOcIVxYHcXIdvJ5AxC%2BjWa6UGFNZRkS7jDzol8Tpl0jvo%2FAMwRruaLwkCR%2FMlSU58%2BCO7kAgbbpI9k1Vk9wfiVIDHh0oLoPz8srvZAj96TsE29RwNdrqa5DDOqFkNATwOtfq6CcuEy9pRVfVZ3qne5KLKsG0slrZQbhGh4%2FQj8jZ6HR7SsRXbr3AoEgc4EqypbnffnzAqnjfo6JE9Ir0kfR1TifcvX1rsJBK9ih6p%2Fbw%2BnqV22OC7utWyvidL7rQyLfyuw2MzWI7bH8qtlwMkyfOYFJ2k%2Bdkhpuhbe5jf6GM\&uid=Pg30eCicqbj1AXYhNpUwb3QskPXfCpAM#get-software)**,** which is where you will spend the majority of your time during our tutorials. Refer to our guide [here](/hkust-robotics-team-software-tutorial/tutorial/tutorial-1-c-and-cubeide-setup/stm32cubeide-setup/stm32-cubeide-setup.md).

### Instructions for [Repl.it C Language](https://repl.it/languages/c)

1. Simply go to [Repl.it C Language](https://repl.it/languages/c).
2. In the middle section, you will see a sample code already in place, under the file name `main.c`. You can also see all the files on the left column associated with this setup. Do not worry about other files right now, editing `main.c` in the middle column is sufficient for now.
3. After you have completed some code, click "Run" to compile and run the program. The program is then run in the **console** on the right, where you can do inputs and it can display outputs. If there are any errors in the code, the program will fail to run and display its error message in the console as well. Follow its prompt or maybe search online to find out how to fix the problem.
4. Click "Save", you will see your URL change to `https://repl.it/repls/SomeRandomWords`, you can access your code with this URL later.
