当用户选择“另存为”选项时,使用新名称保存文件,此新名称不会显示在当前打开的项目中,旧名称仍然存在 [英] When user selects option 'Save as' saving file with new name, this new name is not displayed in the current open project , The old name remains

查看:224
本文介绍了当用户选择“另存为”选项时,使用新名称保存文件,此新名称不会显示在当前打开的项目中,旧名称仍然存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决这个问题。请给我立即解决这个问题

how to fix this problem.please give me immediate solution to this problem

推荐答案

使用新名称保存文件会创建文件的副本,并且应该更改打开文件的内部名称(通常显示在应用程序标题栏中的名称)。但它不会改变任何项目设置。



如果您的问题与Visual Studio本身有关,则必须在重命名文件后手动更改项目设置(添加新文件) ,删除旧文件)。



如果您的问题与自己的项目有关,则必须实现也更新其他设置的代码。但是,这样的选项不应该被称为保存为,而是重命名文件。
Saving a file with a new name creates a copy of the file and should change the internal name of the opened file (the name usually displayed in the title bar of the application). But it will not change any project settings.

If your question is related to Visual Studio itself, you must change your project settings manually after renaming the file (add new file, remove old file).

If your question is related to an own project, you must implement code that also updates other settings. However, such an option should not be called 'Saved as' but something like 'Rename file'.


这篇关于当用户选择“另存为”选项时,使用新名称保存文件,此新名称不会显示在当前打开的项目中,旧名称仍然存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆