settings

In JetBrains tools, how can I share IDE and project settings between multiple developers?

无人久伴 提交于 2019-12-05 17:54:31
问题 I love the JetBrains tools. But, I can't find a way to effectively share settings at the IDE level and the project level with team members. To date, I've followed instructions provided by an article on the JetBrains site, titled "How to manage projects under Version Control Systems". But, many comments on the article warn against implementing it as a method for sharing project settings. And I've run into a few issue with the method, namely not everything I'd like to be shared, is actually

How to save WPF UI state?

此生再无相见时 提交于 2019-12-05 16:29:57
I have a TabControl and under it I have several elements like TreeView and DataGrid . When I expand the tree and resize data grid columns, if I then tab to another tab and come back, the entire UI state is forgotten. I have to re-expand the tree and resize the columns. Is there a sensible and existing way to save the UI state? Let's divide this into - temporary (in memory) and permanent (on the disk). akjoshi To save the state you can bind the relevant control( Width , Height , IsSelected etc.) properties to your binding source's properties(i.e. ViewModel in case of MVVM), this will

Visual Studio - blank line at the end of each new file

*爱你&永不变心* 提交于 2019-12-05 16:28:52
问题 Why does VS add a blank line at the end of each new file I create? I use VS to create .NET projects (not C++ or something). Is there any special reason? Historical compatibility with compilers and parsers? Can I disable this?? 回答1: It is recommended to have a blank line at the end of each file for navigability purposes. Think what happens if someone opens your code with vim for example and uses a keymap to jump from empty line to empty line. Or, if he decides to add another portion of code at

Plugin to use its own app.config

╄→гoц情女王★ 提交于 2019-12-05 15:03:59
问题 I finally managed to build a working solution of a plugin architecture with help of some guys over here, but now a new problem arises. My hosting application uses it's app.config file for some defaults for the executing assembly (which is a Windows Service). Each plugin should be able to load it's own settings from a separate plugin settings file because the host shouldn't be made aware of the plugin settings. In the plugin project I added an app.config file as well (with some settings and a

In Android (using Java), how can I set the ring volume (to a specified number)?

青春壹個敷衍的年華 提交于 2019-12-05 14:57:14
So in my application, I have a seekbar that allows the user to set the ringer volume (0 - 100). I can't seem to find a way to set the ringer volume to a specified number. I looked through the AudioManager class but it tells me to either set ringermode to normal/silent/vibrate. That is NOT what I want. I want the volume to be a specific number . Here's an example of what I'm looking for: private void setRinger (int volume) // volume = 0 - 100 { setRingVolume (volume); // Whenever a person gets a call/sms/warning/anything etc., it should be this volume. } Is this possible in Android? If so, how?

Retrieve name of the Setting from app.config file

时光毁灭记忆、已成空白 提交于 2019-12-05 13:52:40
I need to retrieve the name of the key setting from app.config file. For instance: My app.config file: <setting name="IGNORE_CASE" serializeAs="String"> <value>False</value> </setting> I know i can retrieve the value using: Properties.Settings.Default.IGNORE_CASE Is there a way to get the string "IGNORE_CASE" from my key setting ? try this: System.Collections.IEnumerator enumerator = Properties.Settings.Default.Properties.GetEnumerator(); while (enumerator.MoveNext()) { Debug.WriteLine(((System.Configuration.SettingsProperty)enumerator.Current).Name); } Edit: with foreach approach as suggested

Migrating Widget Settings in WordPress

我的未来我决定 提交于 2019-12-05 13:02:40
I've done a lot of WordPress migrations from one server to another at work and elsewhere, but one strange thing I've never been able to understand is why widget settings never get carried over. I'll dump the MySQL database, find/replace localhost with the live domain, SSH the database up to the live server, and then ftp the whole WP installation (core and theme, from my local machine), and still the widget settings are wiped out. And sometimes this is also the case with values saved in theme options pages I make in the Dashboard. What am I missing? markratledge Wordpress stores widget options

iOS Application Settings Bundle

北城以北 提交于 2019-12-05 12:29:13
Using Apple's Settings bundle in a project, is it possible to expose certain settings to the user only if another setting condition is met? E.g I have a toggle switch, and if the user toggles the selection to False in the Settings application, I want to show a text box that they can fill in. If the toggle is true, I want to hide the text box. Any help or pointers to documentation that explain this would be great. Infinite Possibilities You can find step by step instructions here: Adding a settings bundle to an iPhone App . Edit: I did my research and I think you cannot do this in an App Store

Intellij: Adding 'Interface' to my context menu in the Project Pane

别等时光非礼了梦想. 提交于 2019-12-05 11:52:17
问题 Currently in IntelliJ, if I right-click a package in the Project pane, I can see things such as: new > Java class new > File new > Package I want to add some new menu items in the 'new' context menu such as Interface and Enum. Does anyone know how to do this? I've been playing around in the Settings > Menus and Toolbars without any luck. Edit: The funny thing is if I right click a package and choose New > Edit File Templates... , I can see the template for an Interface and in the description

ClickOnce and UserSettings

孤街醉人 提交于 2019-12-05 11:17:16
Ok, I have a ClickOnce app that I'm testing and I ask the user for a couple of pieces of information the first time they use load the app; Customer Id and Name. I then set the Properties so that they'll be saved across sessions. The property is Properties.Settings.Default["Customer ID"] and similar for name. So I uninstall the application through control panel and reinstall the application but the settings are still there! I go and find all directories for my application and delete out the settings but the application acts like it still has them. I can even step through the debugger and see