From dcfe9f6b78be4d5b51cc1ec99aa5bfb43b99643f Mon Sep 17 00:00:00 2001 From: adrian5 Date: Fri, 11 Oct 2019 12:27:58 +0200 Subject: [PATCH] Doc: add file-type association instructions for Atom --- .../blog/2019-04-15-setting-up-your-editor.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/site/content/blog/2019-04-15-setting-up-your-editor.md b/site/content/blog/2019-04-15-setting-up-your-editor.md index bea7f4c762..5309a3714e 100644 --- a/site/content/blog/2019-04-15-setting-up-your-editor.md +++ b/site/content/blog/2019-04-15-setting-up-your-editor.md @@ -10,7 +10,25 @@ draft: true * eslint-plugin-svelte3 * svelte-vscode -* associating .svelte files with HTML in VSCode, Sublime, Atom, etc etc etc +* associating .svelte files with HTML in VSCode, Sublime, etc. + +## Atom + +To treat `.svelte` files as HTML, install the *file-types* package which enables such custom mappings: + +```bash +apm install file-types +``` + +From the toolbar, open Edit → Config... and add the following two lines to your root (`"*"`) section: + +```cson +"*": + core: + … + "file-types": + "*.svelte": "text.html.basic" +``` ## Vim/Neovim