Files
mainsail/docs/features/hide-gcode_macros-by-default.md
T
lixxbox c6432d5b3c docs: cleanup assets folder (#601)
until now all images were in the docs/assets folder.

From now on, an "img" folder should be created in the respective subfolders of the categories, where the images are contained. They are then "closer to the corresponding description".

The assets folder should only contain general graphics like logos.
2022-01-31 14:30:30 +01:00

38 lines
752 B
Markdown

---
layout: default
title: Hide macros, outputs or fans
parent: Features
nav_order: 50
has_children: false
permalink: /features/hide-gcode_macros
redirect_from:
- /quicktips/hide-gcode_macros
description: >-
You can show and hide G-Code macros in the interface settings
---
# {{ page.title }}
{{ page.description }}
Did you know, that you can also hide gcode macros by prefixing the name with an underscore?
```yaml
[gcode_macro MY_AWESOME_GCODE]
gcode:
_MY_HELPER_CODE
```
```yaml
[gcode_macro _MY_HELPER_CODE]
gcode:
M300
```
`MY_AWESOME_GCODE` appears in your interface settings, `_MY_HELPER_CODE` does not.
![Macros](img/my_awesome_macro.png)
This also works for other configuration sections including **fans and outputs.**
{: .info}