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

XAML files are treated like plain text #263

Closed
wansor opened this issue Mar 12, 2021 · 2 comments
Closed

XAML files are treated like plain text #263

wansor opened this issue Mar 12, 2021 · 2 comments

Comments

@wansor
Copy link

wansor commented Mar 12, 2021

I use this extension in Visual Studio and cannot find a way to configure it such that XAML files are treated as XML, or at least to turn Rewrap off for these files. It's annoying that the code gets re-formatted whenever you paste somthing without turning auto wrap off first.

Anything of these features would help:

  • Silently treat XAML as XML, or
  • Add XAML to the list of configurable “languages”, or
  • Exclude file types that rewrap shouldn't handle by specifying their extensions.
stkb added a commit that referenced this issue Mar 23, 2021
VS Code detects .xaml files as .xml files, but VS doesn't (the
language returned is xaml). But there should really be a separate XAML
type, so this adds it (in vscode xaml files will still be treated as xml
unless the user has an extension installed).
@stkb
Copy link
Owner

stkb commented Mar 23, 2021

Yeah that XAML didn't already exist as its own type was an oversight :) I've added it now, so it will be in the next version.

I'm also looking into porting the recent feature from the VS Code version to the VS version, that lets you also configure whether auto-wrap is by default on or off per file-type.

@stkb stkb added the in pre-release version Is in pre-release version but not in stable yet label Mar 23, 2021
@stkb
Copy link
Owner

stkb commented Nov 15, 2021

Was added in v1.15.0

@stkb stkb closed this as completed Nov 15, 2021
@stkb stkb removed the in pre-release version Is in pre-release version but not in stable yet label Nov 15, 2021
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

No branches or pull requests

2 participants