GithubHelp home page GithubHelp logo

conference-snippet-plugin's Introduction

Conference snippet plugin

Sometimes you need to do live demos and you want to make sure the code you type is the one you want to show, preferably without any typos.

You can currently use live templates in order to put all your demo snippets in your IDE in advance, but those are global and you may not want to clutter your configuration with these one-off snippets.

This plugin allows you to put a file in the root of your project called .snippets.toml and define snippets in there. IntelliJ will then pick these snippets up into the autocompletion dialog.

The plugin uses the TOML format to define snippets. An example:

test = '''
String test = "";
System.out.println(test);
if(true) {
System.out.println("hello");
}
'''

If you now type test into your IDE, you'll get an autocomplete suggestion.

autocomplete

After pressing enter, the corresponding code snippet will be inserted and the code will automatically be reformatted.

after autocomplete

conference-snippet-plugin's People

Contributors

lievendoclo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.