Rome VS Code ExtensionRome unifies your development stack by combining the functionality of separate tools. It uses a single configuration file, has fantastic performance, and works with any stack. This extension brings Rome to your editor so that you can:
InstallationYou can install the code extension by heading to the extension's Visual Studio Code Market Place page or from within VS Code by either:
Getting StartedDefault FormatterConfigure Rome as the default formatter for supported files to ensure that VS Code uses Rome over other formatters that you may have installed. You can do so by opening a JavaScript or TypeScript and then:
You can also enable Rome for specific languages only:
This configuration sets Rome as the default formatter for JavaScript files. All other files will be formatted using Configuration ResolutionThe extension automatically loads the Rome ResolutionThe extension tries to use Rome from your project's local dependencies ( You can also explicitly specify the If the project has no dependency on Rome and no explicit path is configured, the extension uses the Rome version included in its bundle. UsageFormat documentTo format an entire document, open the Command Palette (Ctrl/⌘+⇧+P) and select Format Document. To format a text range, select the text you want to format, open the Command Palette (Ctrl/⌘+⇧+P), and select Format Selection. Format on saveRome respects VS Code's Format on Save setting. To enable format on save, open the settings (File -> Preferences -> Settings), search for Fix on saveRome respects VS Code's Code Actions On Save setting. To enable fix on save, add Imports Sorting [Experimental]The Rome VS Code extension has experimental support for imports sorting through the "Organize Imports" code action. By default this action can be run using the ⇧+Alt+O keyboard shortcut, or is accessible through the Command Palette (Ctrl/⌘+⇧+P) by selecting Organize Imports. You can add the following to your editor configuration if you want the action to run automatically on save instead of calling it manually:
Extension Settings
|