Opening code files
Mac
Coffee opens code and settings files as code: monospaced, coloured by their language, and with nothing read as Markdown. There's nothing to switch on.
How to open one
- In Finder, right-click a file such as
app.tsx,build.pyorconfig.yaml. - Choose Open With › Coffee. File › Open… in Coffee works too.
- If your notes folder holds code files and Settings › Look › Sidebar › Other files in folders is on, click one under its folder's notes.
Example
A .py file opens with its # comments grey and its keywords coloured, not turned into headings. A /* typed at the top of a .js file greys out the lines below it until the comment closes, as a code editor does.
Good to know
- What you type stays as typed: no curly quotes, no dashes, no spelling marks, no autocorrect.
- The file is saved with its own name and extension, and never renamed after its first line.
- Code files aren't listed as notes, and tags, Tidy and the other Markdown tools stay out of the way.
- Coffee colours JavaScript, TypeScript, Python, Swift, JSON, YAML, TOML, HTML, CSS, shell, SQL, Go, Rust, Ruby, Java, Kotlin, C, C++, C#, PHP, Lua, R and more.
- Coffee doesn't become the default app for these files. Your code editor keeps them.