HydroCS Wiki

Pioneering Hydrologic Computational Science

User Tools

Site Tools


howtos:how_to_format_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:how_to_format_code [2026-10-17 10:34 pm] – created hchohowtos:how_to_format_code [2026-10-17 10:35 pm] (current) – hcho
Line 5: Line 5:
 ===== Python: Black ===== ===== Python: Black =====
  
-<<https://black.readthedocs.io/|Black>> is an opinionated Python code formatter with minimal configuration.+[[https://black.readthedocs.io/|Black]] is an opinionated Python code formatter with minimal configuration.
  
 **Install:** **Install:**
Line 24: Line 24:
 ===== R: Air ===== ===== R: Air =====
  
-<<https://posit-dev.github.io/air/|Air>> is a fast R code formatter written in Rust and developed by Posit.+[[https://posit-dev.github.io/air/|Air]] is a fast R code formatter written in Rust and developed by Posit.
  
 **Install:** **Install:**
Line 43: Line 43:
 ===== Shell: shfmt ===== ===== Shell: shfmt =====
  
-<<https://github.com/mvdan/sh|shfmt>> formats POSIX shell, Bash, and other supported shell scripts.+[[https://github.com/mvdan/sh|shfmt]] formats POSIX shell, Bash, and other supported shell scripts.
  
 **Install:** **Install:**
Line 62: Line 62:
 ===== C/C++: clang-format ===== ===== C/C++: clang-format =====
  
-<<https://clang.llvm.org/docs/ClangFormat.html|clang-format>> automatically formats C, C++, and related languages. Formatting rules can be configured using a ''.clang-format'' file.+[[https://clang.llvm.org/docs/ClangFormat.html|clang-format]] automatically formats C, C++, and related languages. Formatting rules can be configured using a ''.clang-format'' file.
  
 **Install:** **Install:**
Line 81: Line 81:
 ===== JavaScript: Prettier ===== ===== JavaScript: Prettier =====
  
-<<https://prettier.io/|Prettier>> is an opinionated formatter for JavaScript, TypeScript, JSON, HTML, CSS, and other web languages.+[[https://prettier.io/|Prettier]] is an opinionated formatter for JavaScript, TypeScript, JSON, HTML, CSS, and other web languages.
  
 **Install:** **Install:**
howtos/how_to_format_code.txt · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki