question-mark
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.

How to use the beautify extension?

See original GitHub issue

how to use the beautify extension

Detail the problem here, including any possible solutions.

I imported the extension in my components, but it didn’t work. import 'brace/ext/beautify';

And I see this in the code, but the editor didn’t have the beautify command

exports.commands = [{
        name: "beautify",
        exec: function(editor) {
            exports.beautify(editor.session);
        },
        bindKey: "Ctrl-Shift-B"
    }]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

3reactions
lidianhao123commented, Nov 7, 2020

It’s work:

import Beautify from 'ace-builds/src-noconflict/ext-beautify';

        <AceEditor
            ref={editorRef}
            value={value}
            commands={Beautify.commands}
        />
0reactions
JiahuanWucommented, Jun 4, 2022

This issue was created a long time ago, and it looks like it’s working now. So I’m closing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Beautify - Visual Studio Marketplace
VS Code uses js-beautify internally, but it lacks the ability to modify the style you wish to use. This extension enables running ...
Read more >
How do you format code in Visual Studio Code (VSCode)?
Just right-click on the text and select "Format code". Visual Studio Code uses js-beautify internally, but it lacks the ability to modify the...
Read more >
JavaScript and CSS Code Beautifier
Beautify CSS, JavaScript and JSON code when you open a .css/.js/.json file. When looking at a CSS, JavaScript or JSON file, ...
Read more >
15 Best Visual Studio Code Extensions for Web Developers
Beautify. This extension is used for formatting files like HTML. The unformatted code in these files is converted into formatted, readable code ...
Read more >
A Guide to Beautifying Visual Studio Code | by Bret Cameron
These three popular extensions can significantly improve the appearance and formatting of your code, but the trick is getting them to work ......
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found