Sublime Text - Preferences: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Nieuwe pagina aangemaakt met 'To change preferences in Sublime Text: * Go to <code>Preferences » Settings</code> * Two files will now open: Default settings on the left and user settings on th...') |
|||
(2 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 1: | Regel 1: | ||
To change preferences in Sublime Text: | To change preferences in Sublime Text: | ||
+ | |||
+ | == General == | ||
* Go to <code>Preferences » Settings</code> | * Go to <code>Preferences » Settings</code> | ||
Regel 5: | Regel 7: | ||
* Edit and safe the file on the right. Make sure that everything is within one set of <code>{</code> and <code>}</code> symbols. | * Edit and safe the file on the right. Make sure that everything is within one set of <code>{</code> and <code>}</code> symbols. | ||
− | == Example == | + | === Example - Correct === |
<pre> | <pre> | ||
Regel 21: | Regel 23: | ||
</pre> | </pre> | ||
− | Incorrect | + | === Example - Incorrect === |
<pre> | <pre> | ||
Regel 37: | Regel 39: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | == Language-specific == | ||
+ | |||
+ | If you want to ensure that these settings apply to all file types or only specific ones, you can create or modify syntax-specific settings. For instance, if you want to set these preferences only for Python files: | ||
+ | |||
+ | * Open a Python File: Open any Python file in Sublime Text | ||
+ | * Open Syntax-Specific Settings: | ||
+ | ** Go to Preferences in the top menu | ||
+ | ** Select Settings - Syntax Specific | ||
+ | * Modify Settings: As before. |
Huidige versie van 14 jun 2024 om 08:30
To change preferences in Sublime Text:
General
- Go to
Preferences » Settings
- Two files will now open: Default settings on the left and user settings on the right
- Edit and safe the file on the right. Make sure that everything is within one set of
{
and}
symbols.
Example - Correct
{ // "draw_white_space": "all", // "font_size": 10, // Added: 2024.06.14 // "tab_size": 3, "translate_tabs_to_spaces": false, "detect_indentation": false }
Example - Incorrect
{ // "draw_white_space": "all", // "font_size": 10, } { // Added: 2024.06.14 // "tab_size": 3, "translate_tabs_to_spaces": false, "detect_indentation": false }
Language-specific
If you want to ensure that these settings apply to all file types or only specific ones, you can create or modify syntax-specific settings. For instance, if you want to set these preferences only for Python files:
- Open a Python File: Open any Python file in Sublime Text
- Open Syntax-Specific Settings:
- Go to Preferences in the top menu
- Select Settings - Syntax Specific
- Modify Settings: As before.