"new file" is greyed out on remote s

For some reason I can create a file on my local system and upload it to the remote, but I can not create a new file on the server using the "new" options (which are greyed out).  Is this a feature or a bug/config/user error?

0

Hi there,

AFAIK -- feature.

This IDE is built on "local code first" idea -- any remote is just a copy therefore new files must be created in the source (local).

1

Well, there are some options available: 

Do you mean that context menu?

0

Dmitry, yes...on my system on the remote side the "new" is greyed out.  According to Andriy, that is by design, as you must create files locally first.

0

@Aw1880

I actually though you meant "File | New" (Alt+Insert using Default keymap) -- it would normally be empty when invoked on Remote Host.

I'm rarely using Remote Host tool window (even when using -- it's just to check the presence or delete some file) .. and did not checked how the context menu looks now. I remember that it had "New Directory" option (which I never used) but presence of "New File" is new to me.

In any case: maybe it's greyed-out for you because you are trying to use it in not-mapped path or something? Can you check your Deployment entry Mappings tab (at "Settings/Preferences | Build, Execution, Deployment | Deployment")? Can you upload/download files and they got created in the right place?

0

请先登录再写评论。