derek_sun_ok
6/25/2019 - 1:52 AM

Cacher Pro Tips

Here are a few tips to make you awesome at Cacher.

// 基于原型链创建对象的两种方法
function c1(){
    this.p1 = 1;
    this.p2 = function(){
        console.log(this.p1);
    }
} 
var o1 = new c1;
o1.p2();



function c2(){
}
c2.prototype.p1 = 1;
c2.prototype.p2 = function(){
    console.log(this.p1);
}

var o2 = new c2;
o2.p2();

Getting Started

Snippets are the most useful when you want to re-use a command or a specific code pattern. Here are a few we have in our library:

  • How to delete a git tag
  • Nginx configuration for staging server
  • Crash handler AWS Lambda function

Label everything

Labels are a great way to organize your snippets. A good practice is to have one for every major product feature. We've created the first label for you - Documentation.

Integrations

  • Cacher for Chrome and Firefox - Save code snippets from anywhere on the web with our browser extensions.
  • Visual Studio Code - Create snippets from selected text and insert them quickly with our powerful extension for VSCode.
  • Atom - Create and insert Cacher snippets from within the Atom editor.
  • Sublime Text - Our open-source package for Sublime adds popular snippet commands.
  • Cacher CLI - The command-line interface to Cacher. Use it to create snippets from clipboard contents and system files.
  • Alfred Workflow - Open source workflow for the macOS Alfred desktop launcher. Search for a snippet from any editor/IDE.

Share with the world

snippets.cacher.io is our community for Cacher users. Every snippet from your library has a public-facing page on the site. Check out the SHARE PAGE control at the top of this snippet to see its URL.

Join a team and spread knowledge

Teams allow you and your colleagues to build a shared knowledge base. Use Markdown to write beautifully formatted documentation.

Keyboard shortcuts

Use these keyboard shortcuts to get around Cacher quickly.

Themes

Don't like working with a bright interface? Try switching to a dark theme: User Dropdown > Personal Settings > Themes. Learn more about themes.

Resources