Can't edit README.md

I can only edit 'readme.md' in lowercase but not in uppercase 'README.md' .  

How to fix this ?

Webstorm 2020.3.2 on Linux Mint 20.1

9

Please could you elaborate on this? what do you mean saying that you can't edit it?

0

When I created a 'readme.md' file in lowercase the editor opened it and I had a blinking cursor, when I created the same file in uppercase the file wouldn't open and no blinking cursor. I need the file to be in uppercase. 

0

Please share a screen recording of the issue plus your idea.log (Help > Show Log in ...)

0

Same here. i created a new repository on bitbucket with the option "create README.md automatically". Then i cloned the repo to my local windows-system.

With a fresh install of the latest php-storm, a double click on the REAMD.md File in the project-window shows the output, but there is no possibility to edit the content of the file.

5

@Rh

but there is no possibility to edit the content of the file.

There, switch to the first or second mode (active on my screenshot) instead of your third one.

  1. Editor only
  2. Editor and Preview
  3. Preview only

Can you switch it there? Does it work for you?

 

P.S. It's a README file that IDE opens on the first project opening. It is expected (at very least I see nothing wrong with this) that such a file is opened in the Preview mode (as it meant for you to read what this project is about etc. and not to edit it).

But sure, if this mode is also used for all other Markdown files, then it's obviously wrong.

39

There, switch to the first or second (active on my screenshot) mode instead of your third one

This worked for me, thanks!

0

Thanks Andriy Bazanov, there was the solution!

0

Very curious choice of default mode to open a document in "preview", rather frustrating design choice having the icons all the way off on the right and not alongside the rest of the toolbar would have made it easier to "discover" the preview and editor mode buttons. This had me googling all over for a plugin until i found this FAQ.

2
Avatar
Permanently deleted user

Thanks Andriy, 

I think "Editor and Preview" should be the default set :) ... less irritation. 

2

Wow.  Its an .md - so you see it in preview.  Makes sense, but is counter-intuitive in an "EDITOR".

Such a simple thing, yet burned up so much time.

Maybe JB should have a pop-up advising that ".md files are opened in PREVIEW mode by default".

1

I can't edit MD files either for some days now.

There is no widget allowing switch editor modes, too:

0

Jung Rupert

There is no widget allowing switch editor modes, too:

Odd... Could be something specific to IntelliJ IDEA .. or another functionality that I do not have enabled here...

Anyway... please do this:

  • Invoke "Help | Find Action..." (Ctrl+Shift+A here on Windows keymap)
  • Type "preview"

Show a screenshot of the results that you will get.

0

Here's the screenshot:

Maybe, the file now opens in a sort of standalone quick preview or something? There was a dialog regarding that when I opened the file from explorer. But even then, I could still edit the file.

0

Jung Rupert

Here's the screenshot:

Thanks. Please invoke the 3rd result "Editor and Preview" -- any better now?

 

Anyway: you can change the default mode at "Settings/Preferences | Languages & Frameworks | Markdown" -- "Default Layout" drop box.

(screenshot is from latest PhpStorm v2023.1.1; not super sure if previous versions will have the same options)

 

I still do not have an answer as to why you do not see the floating bar like I do:

Could be related to those two "preview tab" switches that you have enabled on your screenshot with results (I have them both disabled).

0

Hi there,

"Editor and Preview" was set before already, I just changed that to "Editor" to see, if it makes any difference. I reverted the setting now (looks a little different than your screen, my version is 2023.1.1

There is still no widget shown for me, I now have to switch views with the action command you told me before.

 

0

Jung Rupert

There is still no widget shown for me, I now have to switch views with the action command you told me before.

Lets try the following:

  1. Invoke "Help | Find Action..." (Ctrl+Shift+A here on Windows keymap)
  2. Type "registry"
  3. Locate and invoke Registry... action
  4. Once on the Registry screen locate ide.text.editor.with.preview.show.floating.toolbar  entry -- just start typing "floating" like I did on the screenshot below
  5. Disable/uncheck that option (make sure it actually got the new state -- try to focus another entry etc)
  6. Save
  7. Restart the IDE

This should make that (and formatting?) floating toolbar non floating (always visible).

Any better now?

0

Hi Andriy,

I did how you told me and restarted the IDE. Now it looks like this:

Now can change the editor mode again. I reverted the changes and restarted the IDE again - and now the floating widget is also visible again! It looks like this:

The floating formatting bar is also working!

0

Jung Rupert

The floating formatting bar is also working!

Glad to see it again.

Now the question: will it still be there after a few restarts / next day? (since it disappeared unexpectedly in the first place...)

0

I will report back, if it will break again, thank you.

0

The fact that several people had to search for that (including me) kind of stuff should be reason enough that there should be an indicator or the default view shouldn't be the “preview” but “editor and preview” instead, as several people mentioned above.

1

请先登录再写评论。