Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* 2025/26/2
* archívum


Linkek

* kalendárium
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C#
* D lang.
* Java
* Nim
* Nim2
  + exercises
* XC=BASIC
* old
  ◇C++, ◇Clojure, ◇Scala


[ edit | logout ]
[ sandbox | passwd ]

Autoformat

Nim also has a code beautifier (like Ruff for Python); it's called nph.

Installation:

$ nimble install nph

Basic usage:

$ nph ugly.nim

It modifies the file in place.

VS Code integration

If you want to integrate it in VS Code, i.e. whenever you save your source code, you want it to be autoformatted, then add these lines to your settings.json :

"emeraldwalk.runonsave": {
    "commands": [
        {
            "match": "\\.nim$",
            "isAsync": false,
            "cmd": "cd '${fileDirname}' && nph '${fileBasename}'"
        }
    ]
}

It requires the Run on Save VS Code extension. This extension allows configuring commands that get run whenever a file is saved.

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2026 April 19, 23:41