Where is Android Studio Markdown support plugin preview preference?

Viewed 43803

I want to show preview for markdown. But it is not shown.

I am using Markdown support by JetBrains. And Android Studio 3.1

Plugin

I found IntelliJ help.

https://www.jetbrains.com/help/idea/markdown.html Jetbrains Help

But I can not see that preference.

Preference

How can I see markdown preview?

13 Answers

Updating JetBrains Runtime (JBR) will solve the issue.

  1. Start the IDE, use Help -> Find Action, type "Choose Boot Java Runtime for the IDE", press Enter.
  2. Select the newest version to install.
  3. Click the OK button and wait until the file with JetBrains Runtime is downloaded and configured.
  4. Restart the IDE and Enjoy.
  1. Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add *.md to the list

Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add *.md to the list

  1. Reassign the wild card

Reassign the wild card

  1. Do likewise for the Text file type

Do likewise for the Text file type

  1. Enable the Markdown

Enable the Markdown

  1. Go with Vladimir Schneider

Go with Vladimir Schneider

  1. Preview like a bawse!

Preview like a bawse!

UPDATE: As mentioned by @desgraci below. It's now a paid plugin. It doesn't even show up. It would ideally work as indicated in the updated documentation but some requests left in the reviews.

I'm unable to make it work.

I suggest giving up and opening it in Visual Studio Code.

Right-click tab with your file, select Split Right. In second instance, right-click tab again and select Open in Preview.

Now you have text and preview at the same time.

There is another plugin which is "Markdown Navigator Enhanced" and that I tested on Android Studio 3.5.2, it enables a toolbar with some editing functions as well as the preview options.

You can Edit, preview or do both in a split window, you can even show the HTML code.

The plug-in is paid, but it has a 30-days trial that can be good for a short usage.

Download plugin first,and then you'd better do something to active it:

Windows: AndroidStudio ->File -> Editor ->Coe Style -> File Types->Markdown-> + -> *.md -> ok -> ok

Mac: AndroidStudio -> Preferences -> Editor -> FileTypes -> Markdown-> + -> *.md -> ok -> ok

Then enjoy writing in md.

Taken from https://issuetracker.google.com/issues/159933628?pli=1#comment7

In the Android Studio:

  1. Find action (ctrl + shift + A / command + shift + A)
  2. Search for Choose Boot Java Runtime for the IDE
  3. Select the latest version in the "New:" dropdown - e.g. 11.0.12+7-b1504.27 JetBrains Runtime with JCEF OK Restart

Worked in: Android Studio Chipmunk | 2021.2.1 Patch 1 | Build #AI-212.5712.43.2112.8609683

This is not just a JavaFX issue, which can be resolved by installing Choose Runtime plugin and choosing a different JDK. The Markdown plugin itself also references classes from IntelliJ UI, which means that even with a runtime that includes JavaFX, it still requires IntelliJ and won't work properly with Android Studio:

Caused by: java.lang.ClassNotFoundException: com.intellij.ui.javafx.JavaFxHtmlPanel PluginClassLoader[org.intellij.plugins.markdown, 193.6494.42] com.intellij.ide.plugins.cl.PluginClassLoader@4fa7c8ac
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:77)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 93 more

It will still work with the default bundled JDK, just reduced functionality without the preview panel.

References:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003498520-Mardown-plugin-doesn-t-show-preview

https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

A little late but you can go to Settings/Preferences -> Editor -> File Types. Select Markdown Language from the list. Below, in the Registered Patterns section, add *.md, press ok, and restart Android Studio

Elijah's answer is great, but you may have to do ↓ after his actions.

Preferences -> Editor -> FileTypes -> Markdown-> + -> *.md

Since there is no good plugin for Android Studio IDE, If you have VS Code, I recommend Markdown Preview Enhanced plugins.

Or if you work a lot with Notepad++ , you can install the MarkdownViewerPlusPlus plugin

Follow folowing steps for Notepad++ MarkdownViewerPlusPlus plugin setup:

  1. Download MarkdownViewerPlusPlus, you get a .dll file
  2. Open notepad++ -> plugins -> open plugin folder
  3. create subfolder "MarkdownViewerPlusPlus", paste your .dll file
  4. restart notepad++, in plugins menu options now you should see MarkdownViewer++.

My solution to this issue is to preview on VS Code

Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add *.md to the list

when you open the md file it will ask if you want to open it with your favorite file editor select vs code

File -> Editor -> File Types->Markdown-> + -> *.md -> ok

File -> Editor -> File Types -> ASSOCIATE FILE TYPES WITH ANDROID STUDIO -> select all -> ok -> yes

File -> Plugins -> Marketplace -> search "Markdown" -> install -> APPLY -> OK

Help -> Find Action -> "Choose Boot Java Runtime for the IDE" -> Select the runtime that comes with JCEF support -> OK

restart Android Studio

Related