Skip to content

Generate perfect code headers every time.

Notifications You must be signed in to change notification settings

Picodes/headers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

headers

Generate perfect code headers every time.

Build

You need Rust and Cargo installed on your machine. See the installation guide here.

Then clone the repo and install the CLI globally like this:

cargo install --path .

Setup with VSCode

If not done locally in the repo (done already in savings-rate), in your tasks.json add the command as task:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Generate Header",
      "type": "shell",
      "command": "headers ${input:header}",
      "presentation": {
        "reveal": "never"
      }
    }
  ],
  "inputs": [
    {
      "id": "header",
      "description": "Header",
      "type": "promptString"
    }
  ]
}

Add a keybind for the task in keybindings.json (can be found by entering vsCode command control via cmd+shift+p and the searching for keyboard shortcuts):

[
  {
    "key": "cmd+h",
    "command": "workbench.action.tasks.runTask",
    "args": "Generate Header"
  }
]

This will copy the generated header to your clipboard.

About

Generate perfect code headers every time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%