Search code examples
iderider

Rider copying and pasting text from word pastes as image link


I'm writing a small website in markdown (.md file) which is then processed by jekyll, using rider as the IDE.

Because Rider's spellcheck isn't great, I'm writing in Word and copy-pasting into the markdown file.

Whenever I copy and paste, for some reason the defualt behaviour is to try paste my text as an image...

Trying to paste "Lorem Ipsum" with Ctrl+V pastes "![img.png](img.png)", linking to some corrupt image presumably trying to hold the text i've written.

While is is possible to paste as raw text with Ctrl+Alt+Shift+V, this is really annoying, is there any way to change this default behaviour to not try paste text as an image?


Solution

  • I can reproduce this too. I just gave up by switching them in Settings > Keymap as following.

    You can find by using "Find Shortcut" and press Ctrl+Alt+Shift+V, should see these results:

    • Editor Actions > Paste as Plain Text
    • Main Menu > Edit > Cut/Copy/Paste Actions > Paste as Plain Text
    • Database > Results Cell Editor > Paste as Plain Text

    On the other hand, the original Ctrl+V is with Shift+Insert of these:

    • Editor Actions > Paste inherited from Paste
    • Main Menu > Edit > Cut/Copy/Paste Actions > Paste
    • Database
    • Database Explorer > Copy/Paste > Paste Data Source inherited from Paste
      • > Results > Paste
      • > Results Cell Editor > Paste
    • Other > Results > Paste
    • Plugins > Terminal > Paste (You will have to manually add it back as Ctrl+V)

    Steps

    1. Add keyboard shortcuts for those Ctrl+V items as Ctrl+Alt+Shift+V, click "remove"
    2. search for "Paste as Plain Text" and add keyboard shortcuts as Ctrl+V, click "remove"

    which is really silly but works for me.