Android Studio Markdown 支持插件预览首选项在哪里?

我想预览一下降价。 但是没有显示出来。

我使用的是 JetBrains 和 Android Studio 3.1的 Markdown 支持

Plugin

我找到了 IntelliJ 的帮助。

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

但我看不出这种偏好。

Preference

我怎样才能看到降价预览?

46589 次浏览
  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.

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

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

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.

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.

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

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

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

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.

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

Alternatively you can use markdown editors separately. Here are few options:

  1. MacDown for Mac
  2. Typora
  3. GhostWriter

Few more online editors:

  1. StackEdit
  2. Dillinger
  3. Editor.md
  4. Draft

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 with JCEF 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.

Video: https://youtu.be/Mtu3dUgK480

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++.

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

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