Is there a Markdown viewer in Android Studio?

Issue

I’ve added a README.md to my project and am using it actively as I go along writing my app. I’d like to finalize it before pushing to GitHub but I don’t see a way to preview the markdown in Android Studio.

I saw something about a plug-in possibly being available, but it looked a bit janky. Is there something being used commonly use out there?

Solution

Ok, so with my version of Android Studio Chipmunk | 2021.2.1 Patch 2, the Jetbrains Markdown plugin is pre-packaged and automatically installed. BUT, the preview panel doesn’t work in the Android Studio version of Jetbrains out of the box. There’s already a great write-up on this: [https://joachimschuster.de/posts/android-studio-fix-markdown-plugin-again/]. Here’s the summary:

  • Check for the Markdown plugin at File | Settings | Plugins
  • If that’s installed, follow the instructions in the link above to change the Java Runtime for the IDE to one with JCEF (Java Chromium Embedded Framework) support: Shift + Ctrl + A to open search. Search for "Choose Boot Java Runtime for the IDEā€¦", execute it, select a runtime with JCEF in its title (like the default), and hit Ok to install it.
  • After reboot, opening a *.md file will show a preview pane!

enter image description here

Answered By – Carmen DiMichele

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published