How do you exit a code block, with the keyboard?

Leon Katz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2020

I'm done pasting code into a code block, how do I exit the code block and move to the next line with just the keyboard?

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2020

Hi @Leon Katz , welcome to the Community!

In the Confluence Cloud editor, you can escape from a code block by pressing the down arrow on your keyboard while on the last line in the code block. This will pop your cursor out of the code block and put it on a newline (if there's no content under the code block already - otherwise it will go to the content).

Cheers,
Daniel

Gurmeet Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2021

Hi @Daniel Eads ,

 This thing does not work while i am working on MAC Machine. It works on Windows.

IS there some other Key that i need to use on MAC.

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 11, 2021

Hi @Gurmeet Singh - this applies to code blocks in the new editing experience in Confluence Cloud. I am personally on a Mac and was able to do this successfully at the time this answer was posted in the latest version of Chrome.

Sorry to hear you're having trouble now! Can I ask:

  1. What browser are you using on your Mac?
  2. Is there anything different about how you're using the Mac, for example, are you working over a remote screen session?
  3. Can you confirm that the page you're editing is using the new editing experience? On the edit page, the Publish button is at the top of the screen in the new experience, whereas in the legacy editor it is at the bottom of the screen.

Thanks!
Daniel

Ollie Roberts August 27, 2024

I have a similar question. How do I exit to the right of the `code block` --> to continue typing outside it?

Ferenc_Gyenezs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

When you want to "exit out" from the code block, press the right arrow at the end of your current block, or click at the end of your current line. The annoying part is that there isn't any visual indication at the cursor that you just left the code block. But the text editing toolbar will change:

  • inside the code block: Bold and Italic buttons are disabled, 3 dots are highlighted
  • outside of the code block: Bold and Italic buttons are active, 3 dots are not highlighted anymore

Win10 / Firefox

 

Like Ollie Roberts likes this
Ollie Roberts September 19, 2024

Yes, you are right, thank you. I can now see that annoying part you reference. Thank you for pointing that out!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events