问题
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.
回答1:
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.
回答2:
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.
回答3:
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.
来源:https://stackoverflow.com/questions/3831141/visual-studio-application-settings-rearrange