Skip to content
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

Ignore editor.insertSpaces within strings #52004

Open
edwardgalligan opened this issue Jun 15, 2018 · 0 comments
Open

Ignore editor.insertSpaces within strings #52004

edwardgalligan opened this issue Jun 15, 2018 · 0 comments
Labels
editor-core Editor basic functionality feature-request Request for new features or functionality

Comments

@edwardgalligan
Copy link

Related issues

After searching existing issues, I found two open issues, which are closely related, but different. Including links for reference purposes:

Feature request

Tabs have three uses in code files:

  1. Indentation at the beginning of lines - people often prefer to use spaces here
  2. Indentation between keys and values or around assignment operators - people often prefer to use spaces here
  3. When a literal tab character is required within a string - this should always be a tab and never converted to spaces.

Currently, the 3rd use-case is difficult/impossible to handle easily in VSCode when editor.insertSpaces is set to true.

The most common place I've encountered this is for RegEx strings in BSD sed, which does not support GNU's non-standard \t notation for tabs.

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Jun 15, 2018
@RMacfarlane RMacfarlane added the feature-request Request for new features or functionality label Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-core Editor basic functionality feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants