question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

To 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. Snímka obrazovky z 2020-09-14 16-07-53

System (please complete the following information):

  • OS: Ubuntu 20.04
  • IDE: VS Code
  • Plugin/Package: [Svelte for Code]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Mlocik97commented, Sep 27, 2020

thanks so much, it’s working now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found