Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text: Keyboard shortcut for opening user settings on Windows

Is the shortcut for opening the user settings in Sublime Text in Windows / Linux Ctrl + ,? I'm assuming this because the command for opening user settings on Mac is Cmd + ,.

like image 782
Henry Zhu Avatar asked Jul 14 '16 13:07

Henry Zhu


People also ask

How do I open Sublime Text settings?

Open the Sublime Text personal settings file: Mac OS X: Sublime Text 2 > Preferences > Settings - User. Windows: Preferences > Settings - User. Linux: Preferences > Settings - User.

What does Ctrl R do in Sublime Text?

Goto Symbol In Project The Goto Anything shortcuts navigate the current file. If you have a project open, you can press Ctrl ⇧ R to launch Goto Anything In Project. This command will search for symbols across every file in your project.

What is the shortcut key for Sublime Text?

You can use the shortcut key Ctrl+Shift+N on Windows and Cmd+Shift+N for Mac to create a new window on Sublime Text editor.

What is Ctrl H keyboard shortcut?

When using the CTRL+H keyboard shortcut or the Replace button on the ribbon, the Find and Replace dialog box displays the Find tab instead of the Replace tab.


2 Answers

The Cmd+, keyboard shortcut is OSX specific - the default keybindings for Linux and Windows do not contain anything to open the user settings file.

However, you can add it yourself in the user keybindings file.

In Build 3114, this is accessible from the Preferences -> Keybindings - User menu:

{ "keys": ["ctrl+,"], "command": "open_file", "args": {"file": "${packages}/User/Preferences.sublime-settings"} }

In Build 3118, this is accessible from the Preferences -> Keybindings menu:

{ "keys": ["ctrl+,"], "command": "edit_settings", "args":
    {
        "base_file": "${packages}/Default/Preferences.sublime-settings",
        "default": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by syntax-specific settings.\n{\n\t$0\n}\n"
    }
},
like image 61
Keith Hall Avatar answered Nov 15 '22 11:11

Keith Hall


Update

As of build 3124, the name of the option is now Preferences: Settings. Because of Sublime's fuzzy matching, you can just type in something like prefs to narrow down the options.

Original Answer

If you are referring to the Preferences.sublime-settings file, then you can do it in a couple steps:

  1. Use Ctrl+Shift+P to open the Command Palette.
  2. Start typing in settings - user. Eventually you'll see the option.
  3. Select it.
like image 26
Frank Tan Avatar answered Nov 15 '22 11:11

Frank Tan