# Coding with Custom Components

**URL:** <https://forums.realmacsoftware.com/t/coding-with-custom-components/49766>\
**Category:** Elements\
**Created:** [August 13, 2025, 1:00pm UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766 "2025-08-13T13:00:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnhiggins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/johnhiggins/32/33610_2.png) [@johnhiggins](https://forums.realmacsoftware.com/u/johnhiggins)\
**Post date:** [August 13, 2025, 1:00pm UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/1 "2025-08-13T13:00:38Z")

</div>

Hi,

I drop in a lot of custom HTML components into my Elements projects. Is it possible to select all the code in a component and automatically format/indent it, similar to how you can do in VS Code with **Option + Shift + F**.

Does Elements have anything like this built in, or is there a shortcut I’ve missed? If not, are there any workarounds or plans to add such a feature in the future?

Thanks,

John

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 13, 2025, 1:16pm UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/2 "2025-08-13T13:16:27Z")

</div>

We use the Monaco Code Editor framework that powers VSCode so it’s entirely possible, and a great suggestion!

As a workaround you could paste your code into VSCode to format it, and then paste it back into Elements, if you like to keep things neat and tidy.

Alternatively, you could put your [Custom Components into a DevPack](https://docs.realmacsoftware.com/elements-docs/elements-language/getting-started/getting-started), that way you can use VSCode as your main editor!

---

<div class="post-metadata">

**Author:** ![johnhiggins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/johnhiggins/32/33610_2.png) [@johnhiggins](https://forums.realmacsoftware.com/u/johnhiggins)\
**Post date:** [August 13, 2025, 1:26pm UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/3 "2025-08-13T13:26:53Z")

</div>

Thanks for the quick response.

I’m doing the copy / paste VSCode thing at the moment.

I’ll look into the DevPack thing.

Be great if it was all baked in!

Cheers,

John

---

<div class="post-metadata">

**Author:** ![johnhiggins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/johnhiggins/32/33610_2.png) [@johnhiggins](https://forums.realmacsoftware.com/u/johnhiggins)\
**Post date:** [September 11, 2025, 10:02am UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/4 "2025-09-11T10:02:16Z")

</div>

Just a quick one to see if adding this is on your roadmap?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [September 11, 2025, 10:35am UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/5 "2025-09-11T10:35:46Z")

</div>

We’ve not got round to it yet, but it is something we’d like to do.

If you’re serious about building components, you really should switch over to DevPacks that way you can use your coding editor of choice 🙂

👉 [Check out the QuickStart Video Guide to get going!](https://docs.realmacsoftware.com/elements-docs/elements-language/getting-started/getting-started)

---

<div class="post-metadata">

**Author:** ![johnhiggins](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/johnhiggins/32/33610_2.png) [@johnhiggins](https://forums.realmacsoftware.com/u/johnhiggins)\
**Post date:** [September 11, 2025, 10:47am UTC](https://forums.realmacsoftware.com/t/coding-with-custom-components/49766/6 "2025-09-11T10:47:08Z")

</div>

Great, I’ll have a look!
