Hi,
I would like to have some quick way, like a keyboard shortcut, to hide / show images on my notes.
I looked for it here and found nothing; some report adding some code to the CSS snippets, but not shortcuts or quick ways.
Thanks
Horacio
This sounds like a core feature. Shouldn’t all embeds (backtick blocks as well as media) collapse to a single line in Outline View?
You could switch to Source Mode. Views and editing mode - Obsidian Help
You’re trying to quickly hide or show images in a note so you can focus on the words.
Quickest path I know for this:
-
Use the built‑in view switcher. Press
Ctrl+E
(Cmd+E on macOS) or click the mode icon in the editor’s upper‑right corner to switch from Live Preview to Source mode; in Source mode, embeds render as plain markdown, so images disappear until you switch back. -
If you want to stay in Live Preview, add a CSS snippet in your vault’s
.obsidian/snippets
folder calledhide-images.css
with justimg { display: none; }
. Enable it from Settings → Appearance → CSS snippets, then assign yourself a hotkey for “Reload snippets” under Settings → Hotkeys. Tapping that hotkey will toggle the snippet and hide images without leaving preview. -
For a two‑minute test, create a note like
image_toggle_demo.md
with an embedded image, then hitCtrl+E
or enable the snippet to see which method you prefer. This small experiment tells you if the approach matches your workflow.
Would adding a snippet be okay for you, or do you need a purely native solution?
There is no such command, and if there were, it wouldn’t toggle this snippet.
Please do not post unverified AI output. It wastes people’s time.