Eclipse Markdown Plugin - How to open Markdown HTML Preview when double clicking a .md file?

15,840

Solution 1

Perhaps this is not exactly what you've asked for, but if you open the Markdown HTML Preview view and leave it open, it will automatically change to whatever .MD file you are actually editing. So, just leave that View open and it will perform as you want. You can then save your Perspective to keep that preference (Eclipse does that for you anyway).

More, if you're working with GitHub Flavoured Markdown you'll want to check the GitHub Flavored Markdown viewer plugin, which actually works with the Markdown plugin, but does the rendering as you can see in GitHub. In this case, you'll actually have what you're looking for: if you right click any .MD file under your project explorer, there is an option to Show in GFM View, which will open that view in case it is not open already.

Update (September 2020)

There is one fork in Github that claims to be compatible with Eclipse 2020-03. I didn't test it myself, since I am not longer using Eclipse. Thanks to Daniel Armbrust who provided this link in the marketplace comments.

Solution 2

Open your README.md using the markdown editor (Generate Markdown Preview option) and open the markdown preview window: Window > Show View > Markdown View.

This will render your .md file.

Share:
15,840

Related videos on Youtube

Catfish
Author by

Catfish

Old enough to party. Nerdy by nature. Codementor Blog

Updated on October 10, 2022

Comments

  • Catfish
    Catfish over 1 year

    I just installed the Markdown plugin for Eclipse. I'd like to have it so that if I double click a .md file, it will open the markdown HTML preview view, or at a minimum be able to right click and view in Markdown HTML Preview.

    Is there anyway to do this?

  • lifebalance
    lifebalance over 9 years
    How to create a dependency between the HTML file generated and the .md file?
  • iled
    iled over 9 years
    I'm not sure about what you're trying to achieve. Anyway, I think you should open a new question.
  • Amgad Hanafy
    Amgad Hanafy over 4 years
    It's not compatible with the latest version of Eclipse.
  • Danijel
    Danijel almost 4 years
    @AmgadHanafy Which version did you mean?
  • Amgad Hanafy
    Amgad Hanafy over 3 years
    @Danijel 2019-06