-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSCode is inserting tabs in yaml instead of spaces #192983
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
That's strange as for |
I don't think the file is anything special, but here it is: on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
name: Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
- name: Upload Release Assets
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.release.outputs.tag_name }}
run: |
gh release upload $TAG_NAME main.js manifest.json styles.css
Here is also a video showing the issue: Screen.Recording.2023-09-14.at.13.41.22.movIt is detecting the schema as github actions yaml, not sure if that is making a difference. I also have prettier installed, but there should be no yaml formatter in hearth that does this, since tabs are forbidden in yaml. |
What I'd be interested to know is what the status bar indicates. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Type: Bug
I tried changing all possible settings related to spaces/tabs and the specific ones for yaml, but VSCode keeps inserting tabs as indentation instread of spaces. This is very annoying because all the formatters that I've tried are not able to replace tabs by spaces, so I'm forced to do it manually.
Even when copying from a yaml file that is correctly formatted into another yaml file that is in the same editor the spaces are converted to tabs, which is supper annoying.
VS Code version: Code 1.82.0 (8b617bd, 2023-09-06T22:09:41.364Z)
OS version: Darwin x64 22.6.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (133)
(2 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: