question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add live template for config section

See original GitHub issue

The pre-defined live templates are a great feature! A template which shows examples for the various config attributes of AsciiDoc could be helpfull since it is hard to remember them all. Maybe we could cluster them:

ad-config-i18n
:caution-caption: Caution
:important-caption: Important
:note-caption: Note
:tip-caption: Tip
:warning-caption: Warning
:appendix-caption: Appendix
:example-caption: Example
:figure-caption: Figure
:table-caption: Table
:toc-title: Table of Contents
ad-config-toc
:toc-title: Table of Contents
:toc-placement: auto
:toclevels: 4
:sectnums:
:sectnumlevels: 2
:sectanchors:
:sectids:
:sectlinks:
ad-config-pdf
:pdf-page-size: A4
:pdf-stylesdir: ../pdfTheme

ad-config-render
:icons: font
:imagesdir: images
::doctype: book

I guess the change has to be applied to https://github.com/asciidoctor/asciidoctor-intellij-plugin/blob/master/src/main/resources/liveTemplates/AsciiDocLiveTemplates.xml

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ahus1commented, Oct 27, 2019

I suppose ad-config-i18n and ad-config-toc would be the two most useful. I am not sure about the other two.

I suggest adding line comments explaining each option to the user. The user can later remove the comments if they don’t need them any more (there is Ctrl+Q to look up the docs for each attribute but not everyone knows about this).

1reaction
mojavelinuxcommented, Oct 27, 2019

You probably want to add partnums if you’re adding sectnums.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Live templates | IntelliJ IDEA Documentation - JetBrains
To configure live templates, open the Editor | Live Templates page of the IDE settings Ctrl+Alt+S . On the Live Templates page, you...
Read more >
Adding Live Templates to a Plugin / IntelliJ Platform SDK ...
Run the plugin in a Development Instance and verify there is a new entry under Settings/Preferenes | Live Templates | Markdown | {...
Read more >
Switching templates in version 7.0 - Squarespace Help Center
You can install, preview, and switch templates at any time, as many times as you'd like. Only one template will be live to...
Read more >
Live Template not working in Kotlin - Stack Overflow
Yet not added log template in Kotlin Live templates section in Android Studio. ... The config folder for your Android Studio can be...
Read more >
javidalpe/laravel-blade-phpstorm-live-template - GitHub
PhpStorm Live templates let you insert frequently-used or custom code constructs into your source code file quickly, efficiently, and accurately.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found