Code Cleanup doesn't do Format document in Visual Studio 2022 - visual-studio-2022

I have the following settings regarding my Tab sizing in Visual Studio 17.4.1:
When I use Edit->Advanced->Format Document, I get this result:
I configured Code Cleanup which allegedly contains Format Document:
When I save or explicitely use it, I get this result:
Are there two separate Format Document commands? How should I get the same result?

Related

View PDF in Visual Studio Code or Visual Studio

I found somewhere that I can use Visual Studio Code to view PDFs.
The extension used is "PDF Viewer".
Visual Studio Code allows multiple panes open to see more than one document at a time. This is the main reason I use it.
I also wanted to have the capability to extract specific pages to images (or copy a page as an image ... but this probably isn't possible).
How can this be done, in Visual Studio Code or Visual Studio?
I'm not a coder or developer, please simplify response.
Thanks.

Power Commands for Visual Studio 2017 doesn't format XAML?

I couldn't find any documentation on this but I use Power Commands for Visual Studio with the Power Commands to format my document when I save. And I really love this tool. But for some reason it won't format XAML code. Even though I can format XAML using the known ctrl+k, ctrl+d command.
I thought it would just format anything that would be formatted when using ctrl+k, ctrl+d, but apparently it doesn't? How can I fix this? Is there another workaround so I can save AND format XAML with one command?

RMTrak Visual Basic Run Time Error 4248

When attempting to run RMTrak (a requirements mapping software), Visual Basic runtime error 4248 would appear. This only happens on a single file in the set of files being used. Other errors occur when attempting to run RMTrak while the document is currently open.
Run-time error '4248':
This command is not available because no document is open.
- https://support.microsoft.com/en-us/kb/813983 (1/6/2017)
How RMTrak works: RMTrak will open a file, parse it for specific formats, and consolidate it to their viewer. It will use tags inputted into the documents to relate to other other requirements, input specs, etc to show a list of requirements, their mapping, and how it relates.
Open up the document in question and hit "Alt-F11". The VBA editor will appear. Either delete or comment out the VBA code. Save. Re-run.
When RMTrak is parsing the document, it is attempting to run the Visual Basic code that is embedded in the document. Since the document is not being opened by Word when RMTrak is parsing it, the "ActiveDocument" property is invalid.

SQL Microsoft Visual Studio 2010 - Wrap Text when Exported to Word

I am creating a report using Microsoft Visual Studio 2010 and needing the exported Word document to wrap text in the table's cells as the user's will be inputting data into these table cells once exported.
I have googled and even searched SO for information, but cannot find the property values or the correct VB code to enable these features.
Please help?

Visual Studio 2010: Why aren't key combinations available?

I am trying to use VS 2010 for writing C. Frequently, I try to use a hotkey combination, and I get an error message of the form:
The key combination (key, key) is
bound to command (Command) which is
not currently available.
Why is this? Examples include CTRL + R, R for Rename and CTRL + K, CTRL + D for Format Document.
I am trying these commands with my cursor in the code editing window.
I find that this works in 2008 C# but not 2010 C/C++.
As 020Z28 says, the commands aren't supported in the C++ text editor. The workaround for Format Document is to Select All then Format Selection: Ctrl A, Ctrl K, Ctrl F.
The C++ text editor does not implement those two commands. If they work in 2008, it's only because you have an extension installed that adds support for those features.
Edit: The OP currently says "for writing C", just in case the question later changes to "for writing C#."
If the OP actually means C#, then the error is occurring because you are editing a document that is not part of a project/solution you currently have open, or the file has the Build Action set to None.
I have at random found the format document command to be "not currently available". I have found that saving the file and switching to another tab and back, will renable the command.
It may depend on the file extension of the file you are trying to format.
For example, I was testing a BizTalk map (XSLT) which outputs XML. The output file had a .txt extension, and it repeatedly threw the Ctrl+K, Ctrl+D error. When I changed the file extension to .xml, Ctrl+K,Ctrl+D worked every time.
I don't know if VS uses the content or the extension to determine how to format the file, but my thinking is that VS has no idea how to format a .txt file, but it does know how to format a .xml file.
Remove 'tagprefix="asp"' property from register tag.