It doesn't format the text when I run "Format document" (Alt + Shift + F)
See original GitHub issueDescription
What seems to be the problem? It doesn’t format the text when I run “Format document” (Alt + Shift + F)
Formatter Implementation
Which XML Formatter implementation are you using (the value of your xmlTools.xmlFormatterImplementation
setting).
v2
XML Tools Version
What version of XML Tools are you using? 2.3.1
VS Code Version
What version of VS Code are you using? 1.24.1
Operating System
What OS (and version) are you using? Windows 10 Version 10.0.16299.431
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
VS code Format Code command and shortcut Shift+Alt+F ...
Click Cmd+Shift+P, and choose "Format Document With..." enter image description here. Then, instead of choosing a formatter, choose "Configure ...
Read more >v 0.19.0 Code Formatting (Shift + Alt + F) doesn't work. #2668
Install cpptools v 0.19.0 from extensions. Click (Shift + Alt + F) combination to auto format the file. Nothing happens.
Read more >Keyboard shortcuts in Word - Microsoft Support
Open the File page to use Backstage view. Alt+F. Open the Home tab to use common formatting commands, paragraph styles, and the Find...
Read more >How To Use Code Formatting In Visual Studio Code - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >Apply formatting rules | JetBrains Rider Documentation
Reformat current selection · In the editor, select a block of code that you want to reformat. · Press Alt+Enter and choose Reformat...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am having the same issue using the new formatter. XML Tools 2.3.1, VSCode 1.24.1, Ubuntu 17.10. I can see the extension handler process using a lot of CPU but nothing is formatted (even after waiting 10+ seconds).
Switching back to “classic” and the formatter works on my xml file within 2 seconds.
To make it even more weird, I opened the Developer Tools in VSCode and clicked on the X button to close it. The entire app froze for about 2 seconds and shutdown. When I opened it again, I had to import the
xml-issue201.txt
file (that I attached in the previous message), switched the language mode to XML and formatted it - and this time it worked! However, when I tried to format the real file, which has about 1.6k lines, the problem persists.