Chuck Le Butt
Chuck Le Butt

Reputation: 48758

PhpStorm "Save as" open new file

This always catches me out, but it appears to be another PhpStorm only quirk. Normally when you "Save as" a document, it will open the new file. This happens in all Adobe products, all Office products, and every other app I can think of... except PhpStorm.

So many times I've forgotten about this quirk and started working over the old file, thinking it was the new one. It's most frustrating.

Is there a way to change this behaviour?

Upvotes: 4

Views: 295

Answers (1)

LazyOne
LazyOne

Reputation: 165088

Is there a way to change this behaviour?

Unfortunately no.

Save as is basically a shortcut for Save and then Refactor | Copy.

https://youtrack.jetbrains.com/issue/IDEABKL-332 I guess (based on "duplicate" tickets)


General suggestions (Captain Obvious):

  • Invoke Refactor | Copy on desired file before making changes in it (so it will sit deep in your mind that the currently edited file will keep changes)
  • Use Local History to rollback unwanted changes in old/original file.

Upvotes: 6

Related Questions