User-Data-Dir: Same Browser, Different Settings
By launching Chrome with custom data directories you basically start new instances of the browser. Each will remember its history, bookmarks, passwords, etc. Data directories behave as sandboxes so no information is shared between the profiles.
Use the commandline switch
and Chrome will use the specified directory to store settings.
For example, using
will save settings to "d:\MyProject\ChromeData".
To start Chrome with commandline switches, you can:
- use a launcher application (I prefer Executor but there are tons to choose from)
- create a shortcut (eg. on Desktop) and edit the "Target" field (mind the quotes):
Safe and Flexible
The data directory can be on an different path then Chrome itself. That means if you uninstall Chrome or other bad thing happens your data directories will remain intact. To ensure this, place your data directories to different partitions than your Chrome installation.
If you ever need to change the data-dir location, simply move the directory and adjust the commandline parameter.
Now that you have separated data directories you can start customize them to make things easier.
- Put sites that are connected with the current project on the Bookmark bar to quick access.
- Login to sites you will use when working on the given project. Allow Chrome remember usernames/passwords (unless you use another way to store passwords).
- Customize Chrome settings, e.g. start with tabs from previous session, disable translation feature, etc.
- Apply a color theme that fits the best for the project. This way you can easily recognize which project the current Chrome instance belongs to.
- You can use other commandline parameters with Chrome, for example to always start in incognito mode, set custom cache dir, etc. See the complete list here.
What About the Multi-User Feature?
The built-in multi-user feature is similar but I found that less flexible than custom data directories. You don’t have control over data directory locations and you cannot start Chrome with a specified user (the previous is loaded automatically). Using “–user-data-dir” completely isolates your Chrome instances and does not mess with the multi-user feature.
Using Chrome with custom data directories per project is a great time-saver. I bet even Chuck Norris is using them too :)
0 comments Comments