Where is Android Studio Markdown support plugin preview preference?
Android StudioAndroid Studio Problem Overview
I want to show preview for markdown. But it is not shown.
I am using Markdown support by JetBrains. And Android Studio 3.1
I found IntelliJ help.
https://www.jetbrains.com/help/idea/markdown.html
But I can not see that preference.
How can I see markdown preview?
Android Studio Solutions
Solution 1 - Android Studio
- Go to File>Preferences>Editor>File Types then select Files Opened In AssociatedApplications and add
*.md
to the list
- Reassign the wild card
- Do likewise for the Text file type
- Enable the Markdown
- Go with Vladimir Schneider
- 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.
Solution 2 - Android Studio
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.
Solution 3 - Android Studio
Updating JetBrains Runtime (JBR) will solve the issue.
- Start the IDE, use Help -> Find Action, type "Choose Boot Java Runtime for the IDE", press Enter.
- Select the newest version to install.
- Click the OK button and wait until the file with JetBrains Runtime is downloaded and configured.
- Restart the IDE.
- Enjoy.
Solution 4 - Android Studio
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.
Solution 5 - Android Studio
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.
Solution 6 - Android Studio
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:
Solution 7 - Android Studio
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
Solution 8 - Android Studio
Elijah's answer is great, but you may have to do ↓ after his actions.
Preferences -> Editor -> FileTypes -> Markdown-> + -> *.md
Solution 9 - Android Studio
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
Solution 10 - Android Studio
Alternatively you can use markdown editors separately. Here are few options:
- MacDown for Mac
- Typora
- GhostWriter
Few more online editors:
Solution 11 - Android Studio
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:
- Download MarkdownViewerPlusPlus, you get a
.dll
file - Open notepad++ -> plugins -> open plugin folder
- create subfolder "MarkdownViewerPlusPlus", paste your
.dll
file - restart notepad++, in plugins menu options now you should see MarkdownViewer++.
Solution 12 - Android Studio
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