Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It doesn't format the text when I run "Format document" (Alt + Shift + F)

See original GitHub issue


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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

Stensbycommented, Jun 25, 2018

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.

fappazcommented, Aug 9, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found