# adding cpp file in makecode

**URL:** <https://forum.makecode.com/t/adding-cpp-file-in-makecode/26061>\
**Category:** micro:bit\
**Created:** [January 17, 2024, 6:29pm UTC](https://forum.makecode.com/t/adding-cpp-file-in-makecode/26061 "2024-01-17T18:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pythom](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@pythom](https://forum.makecode.com/u/pythom)\
**Post date:** [January 17, 2024, 6:29pm UTC](https://forum.makecode.com/t/adding-cpp-file-in-makecode/26061/1 "2024-01-17T18:29:12Z")

</div>

Please, don’t know how to add cpp file to MakeCode? When I add a file and enter the name _custom.cpp_, the name is changed to _custom.cpp.ts_.

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [January 17, 2024, 6:31pm UTC](https://forum.makecode.com/t/adding-cpp-file-in-makecode/26061/2 "2024-01-17T18:31:19Z")

</div>

c++ coding is not supported in the makecode webapp. you have to use the CLI for that: [https://github.com/microsoft/pxt-mkc](https://github.com/microsoft/pxt-mkc)
