Questions tagged [settings]

Settings may refer to the tweaking which can be used to help improve the user-experience or performance etc.

Settings may refer to the tweaking which can be used to help improve the user-experience or performance etc. Settings typically represent a set of options which a user can choose from adjust the interface or controls of a certain application to their preferences.

5394 questions
811
votes
14 answers

IntelliJ: Never use wildcard imports

Is there a way to tell IntelliJ never to use wildcard imports? Under 'Settings > Code Style > Imports', I can see that you can specify the 'class count' prior to IntelliJ using wildcard imports. However, if I never want to use wildcard imports can…
digiarnie
  • 22,305
  • 31
  • 78
  • 126
464
votes
4 answers

What's the best practice using a settings file in Python?

I have a command line script that I run with a lot of arguments. I have now come to a point where I have too many arguments, and I want to have some arguments in dictionary form too. So in order to simplify things I would like to run the script with…
c00kiemonster
  • 22,241
  • 34
  • 95
  • 133
439
votes
12 answers

Changing Vim indentation behavior by file type

Could someone explain to me in simple terms the easiest way to change the indentation behavior of Vim based on the file type? For instance, if I open a Python file it should indent with 2 spaces, but if I open a Powershell script it should use 4…
EBGreen
  • 36,735
  • 12
  • 65
  • 85
369
votes
7 answers

Maven command to determine which settings.xml file Maven is using

How do I use maven command line to determine which settings.xml file Maven is picking up?
harschware
  • 13,006
  • 17
  • 55
  • 87
340
votes
14 answers

How to stop vim from adding a newline at end of file?

So I work in a PHP shop, and we all use different editors, and we all have to work on Windows. I use vim, and everyone in the shop keeps complaining that whenever I edit a file there is a newline at the bottom. I've searched around and found that…
Boushley
  • 6,816
  • 4
  • 27
  • 29
337
votes
11 answers

How to open Visual Studio Code's 'settings.json' file

I did it many times, and each time I forgot where it was. Menu File → Preferences → Settings. I get this: I want to open file settings.json (editable JSON file) instead. How can I do that?
Kasheftin
  • 7,509
  • 11
  • 41
  • 68
326
votes
32 answers

Setting DEBUG = False causes 500 Error

Once I change the DEBUG = False, my site will generate 500 (using wsgi & manage.py runserver), and there is no error info in Apache error log and it will run normally when I change debug to True . I'm using Django 1.5 & Python 2.7.3 here is Apache…
zhiguo.wang
  • 4,393
  • 4
  • 16
  • 8
258
votes
10 answers

How to configure "Shorten command line" method for whole project in IntelliJ

When I run tests I get the error "Command line is too long". It works if I set the "Shorten command line" method in the Run/Debug configuration to "JAR manifest" for the specific method or class, but how do I set it for the whole project or is…
momo
  • 2,723
  • 2
  • 11
  • 10
223
votes
4 answers

maven command line how to point to a specific settings.xml for a single command?

Is it possible to point to a specific settings file in order to override the default settings.xml being used by maven for a single command? Example: mvn clean install -Dparam # -> pass specific settings file path as param to override default…
guilhebl
  • 8,330
  • 10
  • 47
  • 66
216
votes
14 answers

How do I open phone settings when a button is clicked?

I am trying to implement a feature in an App that shows an alert when the internet connection is not available. The alert has two actions (OK and Settings), whenever a user clicks on settings, I want to take them to the phone settings…
Solomon Ayoola
  • 2,639
  • 3
  • 18
  • 21
209
votes
2 answers

How to set my phpmyadmin user session to not time out so quickly?

I work on my wamp for localhost backend development everyday. I feel annoyed by phpmyadmin auto log out out quickly. Is there any way I could get rid of this or extend the timeout? Where can I set this timeout value?
Jin You
  • 2,328
  • 2
  • 15
  • 19
199
votes
1 answer

Query a parameter (postgresql.conf setting) like "max_connections"

Does anyone know if it's even possible (and how, if yes) to query a database server setting in PostgreSQL (9.1)? I need to check the max_connections (maximum number of open db connections) setting.
Greg Kramida
  • 4,064
  • 5
  • 30
  • 46
194
votes
9 answers

Options, Settings, Properties, Configuration, Preferences — when and why?

There are several words with similar (in some sense) meaning: Options, Settings, Properties, Configuration, Preferences English is not my native language. Could you explain the difference in simple English please? I think the following template…
Andrew T
  • 5,549
  • 7
  • 43
  • 55
186
votes
15 answers

Specify JDK for Maven to use

I am trying to build a Hudson plugin I've modified and it requires jdk1.6. This is fine, but I don't see how I can tell maven where the different jdk is. I've found few mentions on the internet but they don't seem to apply to me. Some suggest adding…
DanInDC
  • 5,019
  • 8
  • 31
  • 25
178
votes
10 answers

Where are the Properties.Settings.Default stored?

I thought I knew this, but today I'm being proven wrong - again. Running VS2008, .NET 3.5 and C#. I added the User settings to the Properties Settings tab with default values, then read them in using this code: myTextBox.Text =…
DaveN59
  • 3,638
  • 8
  • 39
  • 51
1
2 3
99 100