Is there an easy way to create a temporary file that isn't saved anywhere in rider itself?

Answered

Basically Very often, I want to paste a large amount of code into rider, so I can more easily read it due to numerous features of rider.

But right now, I would need to first create a file and save it somewhere, I was wondering if there's anyway to create a new tab for that code, without actually creating a new file?

Very similar to the VS Code's new file button, where you can start writing code in it before saving it/selecting a save location etc.

Thanks

4 comments
Comment actions Permalink

Hello Simon,

You can try using Scratch files, they can be called with a shortcut ⌘+⇧+N or Ctrl+Shift+N. Let me know if that works for you.

0
Comment actions Permalink

Thank you for your reply, that is indeed the feature I was looking for.

However I'd suggest 1 thing,

You know how in chrome/firefox you have a + button next to your tabs to quickly create a new tab?

I'd suggest adding that same concept to your IDEs tabs for adding scratch files, for a more intuitive UX and since it is a concept generally known by everyone that uses the internet.

Also personally I think the word 'Scratch files' is a very bad name, since it does not make overtly obvious to a completely new user what it does, names for UI components should ideally be named something that makes it very obvious what their function is, as such I would suggest re-naming to  'Create temporary file'





0
Comment actions Permalink

Ohh there doesn't seem to be a way to edit the templates of the scratch files to add a unity one..

and for some reason it doesn't seem to be able to realize it's a unity engine file...

which basically makes it sort of pointless for me.

using UnityEngine;

public class scratch : UnityEngine.MonoBehaviour
{

}

0
Comment actions Permalink

Hello again,

Thank you for your feedback on behalf of Scratch files view and naming. As for the issue with Unity code, there is an open corresponding feature request for it: RIDER-19886. Please upvote it for bringing additional interest and watch for monitoring the status.

0

Please sign in to leave a comment.