DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How to Get Consistent Line Breaks in VS Code (LF vs CRLF)

5 years ago qvault.io

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Cryptography, Programming, and Security Articles This is typically due to a difference in line endings.

If you are here to quickly fix a single file that you are having problems with, you are in luck. At the bottom right of the screen in VS Code there is a little button that says “LF” or “CRLF”: Click that button and change it to your preference.

If you want new files to automatically have the correct line endings, then you can set the following setting in the top level of your settings.json file: For LF: If you set it in your global settings.json file it will apply to your entire machine.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com