Skip to content

Configure editors to explicitly use LF / \n line endings#10916

Merged
srittau merged 2 commits intopython:mainfrom
Avasam:lf-editor
Oct 19, 2023
Merged

Configure editors to explicitly use LF / \n line endings#10916
srittau merged 2 commits intopython:mainfrom
Avasam:lf-editor

Conversation

@Avasam
Copy link
Copy Markdown
Collaborator

@Avasam Avasam commented Oct 19, 2023

This solves a couple Windows-Linux consistency issues. Namely:

  • Running bash scripts using WSL on Windows
  • git thinking the entire repository changed EOF when opening VSCode in WSL context.
  • git changing EOF to CRLF on checkout on Windows

Fixed VSCode defaults not using 4-spaces for tom while I'm at it (since I have the editorconfig.editorconfig extension installed, it was correctly using the value in .editorconfig for me)

@Avasam Avasam changed the title Configure editors to use LF / \n line endings Configure editors to explicitly use LF / \n line endings Oct 19, 2023
@srittau srittau merged commit 3cb1a8f into python:main Oct 19, 2023
@Avasam Avasam deleted the lf-editor branch October 19, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants