Visual Studio,应用程序设置...重新排列
愚蠢的问题...纯粹是审美...鉴于上面的图片。如何上移/下移值?例如,“状态”属于“高度/宽度/顶部/左侧”(窗口位置 + 状态)分组。
这不是我后来添加东西但慢慢变得混乱的唯一项目。可以删除/重新添加,但这会变得乏味且容易出错。可以保留原样,但这只是一个小烦恼。
我是否完全没有看到可以移动这些东西的地方,因为我已经看过了,但我只是没有看到它。
Silly questions... purely aesthetic... given the picture above. How do you move the values up/down? For example, State belongs grouped with Height/Width/Top/Left (Window Position + state).
Not the only project where I later add stuff and it slowly gets out of order. Can delete/re-add, but that gets tedious and error prone. Can just leave it as is, but it's a minor annoyance.
Am I totally not seeting the setting somewhere to move the stuff around, because I've looked and I just don't see it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
关闭解决方案。打开项目的 Properties\Settings.settings 文件并重新排列
项。您将按照它们在该文件中列出的顺序将它们重新列在“设置设计器”中。Close the solution. Open the project's Properties\Settings.settings file and re-arrange the
<Setting>
items. You'll get them back listed in the Settings Designer in the order in which they are listed in that file.正如其他答案所示,您需要编辑 Properties\Settings.settings 文件中的条目顺序。您不需要关闭 VS,只需关闭“属性”选项卡(如果它打开)。
此外,这不会重新排列 .config 文件中的 XML 条目。为此,您需要重新排列在根项目文件夹中创建的 app.config 文件中的条目。
这两个文件都是简单的基于 XML 的文件。
As the other answers indicate you need to edit the sequence of the entries in the Properties\Settings.settings file. You do not need to close VS, just close the Properties tab if it is open.
Also this will not re-arrange the XML entries in you .config file. For that you need to re-arrange the entries in your app.config file, that is created in your root project folder.
Both files are simple XML based files.
您无法在该屏幕中移动内容。它按“自然”顺序加载和保存。意思是新的东西被放在底部。
You can't move things around in that screen. It's loaded and saved by the "natural" order. Meaning that new things are placed at the bottom.