Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franmastromarino/vs-code-settings-os
Update Visual Studio code settings based on operative system.
https://github.com/franmastromarino/vs-code-settings-os
Last synced: about 2 months ago
JSON representation
Update Visual Studio code settings based on operative system.
- Host: GitHub
- URL: https://github.com/franmastromarino/vs-code-settings-os
- Owner: franmastromarino
- License: gpl-3.0
- Created: 2023-03-23T17:41:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T10:45:53.000Z (8 months ago)
- Last Synced: 2024-05-29T02:25:38.903Z (7 months ago)
- Language: JavaScript
- Size: 59.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=franmastromarino.vs-code-settings-os)
#VS Code Settings for Mac Windows and Linux
## Manage Visual Studio Code Settings Across Mac, Windows, and Linux
This extension enables you to manage different settings based on your operating system, simplifying the process of maintaining separate settings for Windows, macOS, and Linux while working with Visual Studio Code.
## Key Features
- Automatically copies the content of OS-specific settings files into `.vscode/settings.json`
- Supports settings for Windows, macOS, and Linux
- Helps maintain a consistent development environment across different operating systems## How to Use
1. Create the appropriate settings file(s) for your operating system(s) in your project's `.vscode` folder:
- `.vscode/settings.windows.json` for Windows
- `.vscode/settings.macos.json` for macOS
- `.vscode/settings.linux.json` for Linux2. Define your desired settings in each file and save them.
3. The extension will automatically copy the contents of the corresponding file into `.vscode/settings.json` based on the operating system you're currently using.In order to enjoy autocompletion and validation of your operating system settings files, add the `"$schema"` key at the top of each file:
```json
{
"$schema": "vscode://schemas/settings/user"
}
```## Example
`.vscode/settings.json`:
```json
{
"workbench.colorTheme": "Solarized Dark"
}
```Suppose you are working on macOS and have the following settings:
`.vscode/settings.macos.json`:
```json
{
"editor.fontSize": 14
}
```After activating the extension, your `.vscode/settings.json` file will be updated to:
```json
{
"editor.fontSize": 14,
"workbench.colorTheme": "Solarized Dark"
}
```To prevent commits of an updated `settings.json` file in your project, create a `settings.all.json` file containing common settings across all operating systems.
Each time you open your project, the VS Code Settings for Mac Windows and Linux extension will update the `settings.json` file based on your operating system and the content of the `settings.${os}.json` file.
Now you can include the `settings.json` file in your `.gitignore` and enjoy maintaining consistent settings across different operating systems!
Simply copy and paste the code above into your Markdown editor, and it will render the improved content.