Svelte for VS Code is inserting 2 spaces at document formating, instead tab (with size 4), as is set in VS Code.
See original GitHub issueTo Reproduce Steps to reproduce the behavior: install Svelte for VS Code npx degit svelte/sapper-template#rollup open for example _error.svelte set “intend using tab size 4” and convert ctrl+shift+i -> get two spaces.
<svelte:head>
<title>{status}</title>
</svelte:head>
<h1>{status}</h1>
<p>{error.message}</p>
{#if dev && error.stack}
<pre>{error.stack}</pre>
{/if}
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
System (please complete the following information):
- OS: Ubuntu 20.04
- IDE: VS Code
- Plugin/Package: [Svelte for Code]
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How do I Change VSCode To Indent 4 Spaces Instead Of ...
choose Convert Indentation to Tabs on the dialog popup. Now it says Tab size 2; click on the status bar again where it...
Read more >Svelte for VS Code - Visual Studio Marketplace
Svelte for VS Code. Provides syntax highlighting and rich intellisense for Svelte components in VS Code, using the svelte language server.
Read more >VS Code: edits with 4-spaces, saves with 2-spaces - Super User
I'm using the Prettier extension, and it had the number of spaces per tab set to 2. With the "Format On Save" option...
Read more >How to configure Prettier and VSCode - Gleb Bahmutov
This blog post shows how to configure Prettier to work from command line, from VSCode and from Git hooks. You can find the...
Read more >VS Code: use language-specific settings - Flavio Copes
With VS Code you have the ability to customize your spaces vs tabs preference, like in any editor, and also the option to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks so much, it’s working now.
@dummdidumm
https://www.youtube.com/watch?v=eHazE93BClo&feature=youtu.be&ab_channel=GabrielMlocik