Thank you for bringing this up. It's not yet possible while we roll about the new editor, but we have a feature request below that would include that:
Please vote on the feature request and you will be automatically added to the list of watchers.
As a workaround, you might want to attach the code in a text file with a preview snippet using the code block macro.
Let me know if you have any further questions about that.
Welcome to Atlassian Community! It's nice to meet you.
The Code macro has replaced the original Code Block macro. The Code Block Macro was the one that has the ability to collapse, the Code macro does not.
The feature request I shared with Mat earlier would hopefully include a collapsible option for the new Code macro.
Can you confirm that you're able to insert the Code macro using the slash / command in the new editor?
Thank you for following-up on this thread. I agree that the Code macro is definitely lacking in comparison to the Code Block macro.
However, the Code macro is a different macro entirely, thus the feature request for the missing capabilities that were offered in the former Code Block macro.
There are multiple other missing features in the new version of the editor, so if you encounter anything else you find that is sorely lacking, you can compare with our Confluence Cloud Editor Roadmap to see if it's a feature we plan to include in the future.
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events