Derw
  • Derw
  • Roadmap
  • 📖Guides
    • Creating your first project
    • Installing packages
    • Compiling and running your code
    • Formatting
    • Repl and playground
    • Testing
  • ⚖️Fundamentals
    • Literals
    • Definitions
    • Types
    • Conditionals
    • Imports and exports
    • Comments
  • 🔧Building things
    • Web pages
    • REPLs
  • 🪛Contributing
    • Contribution flow
    • Working on the compiler
  • 💭Hypotheticals
    • Hypotheticals
    • Async / await
Powered by GitBook
On this page
  1. Guides

Formatting

How to format your Derw code

Derw comes with a built-in formatter. Simply run derw format to format all files within your src directory from the root of a Derw project.

To format, run `derw format`
To watch use the --watch flag
  --watch :		Watch Derw files for changes
  -h, --help :		This help text
PreviousCompiling and running your codeNextRepl and playground

Last updated 2 years ago

📖