r/ObsidianMD • • 3d ago

help inserting code block with ctrl + backtick doesn't work anymore..

Hey! I used to be able to create code blocks with ctrl + backtick.

I cannot do that anymore. When i try to set it via the gui, it gives me ctrl + ' instead of a backtick.

If i set it in the hotkeys.json file, it doesnt work either:

  "editor:insert-codeblock": [
    {
      "modifiers": [
        "Mod"
      ],
      "key": "`"
    }
  ]
}

Does anyone have a trick to pull it off?

update: i just figured something.. it works in english US, but not on french canadian. in order to do a triple tick, we have to press the key on the left of the enter key 6 times.

so it records the key as ' and not as a backtick, even if it's a back tick.

our backticks are for accents like these: è. this is the reason we have to press 6 times.

I was using ctrl + backtick a few months ago to save time..

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/XxTriviumxX 3d ago

i just figured something: it works in english US, but not on french canadian. in order to do a triple tick, we have to press the key on the left of the enter key 6 times.

so it records the key as ' and not a back tick, even if it's a back tick.

our backticks are for accents: è

1

u/Master-Rent5050 3d ago

Does the French Canadian keyboard use a dead key?

0

u/XxTriviumxX 3d ago

backtick is a dead key. hence why we have to type it 6 times instead of 3. A few months back it worked as a hotkey combo.