(project-template)=
# {{download_icon}} Project template

Different ways to get the template:
- Use the following command on your terminal. The template will be unpacked to `c-template-main` folder.

  Before executing, go the folder where your C projects are located. For example if you opened a project already (e.g., `code/prj1`), then use `cd ..` to go to the parent folder (e.g., `code`).
  ::::{tab-set}
  :::{tab-item} {{win_icon}} Windows PowerShell in VSCodium
  ```sh
  Invoke-WebRequest -Uri https://aydos.de/ctemplate -OutFile c-template.tar.xz
  tar xf c-template.tar.xz
  rm c-template.tar.xz
  ```
  :::

  :::{tab-item} {{linux_icon}} Linux, {{win_icon}} Windows Command Prompt, {{apple_icon}} MacOS
  ```sh
  curl -L aydos.de/ctemplate | tar xj
  ```
  This command does not work in PowerShell. In Windows, VS Code opens PowerShell as default. You have to choose the profile `Command Prompt` using {{add}}{{chevron_down}} menu on the terminal tab.
  :::
  ::::
- Download: <https://aydos.de/ctemplate> and unpack it.
- Copy paste the file contents: <https://gitlab.com/fpga-lab/c-template>