I found this thread and realized that the references here are to the new editor that is use in next-gen projects in Jira Cloud (and potentially in other classic projects with the Jira labs new issue view enabled). For Jira server or Jira Cloud using classic projects, the editor in use for both descriptions and comments is the same and won't allow this in-line code formatting on the same line.
That said, these next-gen projects are using this new Rich text editor right now only for comments. There is a request to implement this for description fields as well which would correct this over in JRACLOUD-74267. Right now there is not a means to do this within Jira Cloud today.
I would recommend watching that issue for updates and voting on this as it can help our teams better prioritize new features and fixes.
doesnt wiki formatting help? like this
def test = "test"
edit: make sure you are using proper renderer and its enabled (i believe it should be similar for cloud and server):
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