Development before domain name chosen

You can use the Search and Replace plugin to fix the URLs once the new domain is chosen.

Likewise, plugins such as BackupBuddy (paid) or Duplicator (free) — which are very useful for backup, possibly coupled with migration to another server or domain — also perform this search-and-replace operation.