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

Hide the "Format XAML" option outside of the XAML editor #132

Open
ravindUwU opened this issue Nov 30, 2017 · 6 comments · May be fixed by #460
Open

Hide the "Format XAML" option outside of the XAML editor #132

ravindUwU opened this issue Nov 30, 2017 · 6 comments · May be fixed by #460

Comments

@ravindUwU
Copy link

The "Format XAML" context menu option, which appears upon right-clicking the code editor, does so irrespective of the language of the document being edited (which makes it available (but useless) when languages other than XAML are edited).

While it should appear in the XAML editor,

XAML editor context menu

...it shouldn't when other languages are being edited,

C# editor context menu

Is it possible to conditionally add the option to the context menu?

@grochocki
Copy link
Contributor

Not 100% sure if this is possible, but definitely worth exploring.

@grochocki grochocki added this to the Future milestone Feb 3, 2018
@ravindUwU
Copy link
Author

ravindUwU commented Feb 4, 2018

Alternatively, a setting (that would be inactive by default), to (unconditionally) hide the "Format XAML" context menu option, would be nice.

This is because same command can be invoked automatically upon saving a XAML file, or via a keyboard shortcut which IIRC is assigned by default.

@wilsade
Copy link

wilsade commented May 20, 2018

Hi there,

Is this feature already available?
The submenu stills apears on other documents.

Thanks.

@NicoVermeir NicoVermeir self-assigned this Dec 6, 2018
@grochocki grochocki removed this from the Future milestone Apr 8, 2020
@grochocki grochocki added this to the Future milestone Apr 20, 2020
@grochocki
Copy link
Contributor

This would be a great improvement, assuming it is technically feasible given the current Visual Studio SDK.

@mrlacey
Copy link
Contributor

mrlacey commented Dec 24, 2023

In that this has had no progress in over 5 years and even though the "help wanted" label was removed, I'm assuming that you are still open to a contribution to fix this.
I find it very annoying/disappointing that the context menu shows up in the context menu of all code editor window, regardless of the file type.

@grochocki grochocki removed the VSMAC label Dec 27, 2023
@grochocki
Copy link
Contributor

Yes! Still open to a contribution to fix this.

@mrlacey mrlacey linked a pull request Jan 10, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants