This is a plugin to show slides and code examples directly from IntelliJ IDEs, using Compose Multiplatform UI.
It can be useful if large part of your presentation is based on code examples, so instead of copy-pasting code into Keynote or PowerPoint slides you can show both slides and code in IDE.
- Code examples stay up-to-date.
- You can run and modify code examples live to show how they work.
- Smooth transition between slides and code examples.
- Create
slides.txt
in IDE project with code examples. - Save presentation slides as images to some folder in IDE project folder (e.g. in Keynote in the main menu
File -> Export To -> Images...
). - Edit
slides.txt
so that it contains paths to slides image files and code examples (see format description below). - Use
Next Slide
andPrevious Slide
actions. It's recommended to change default shortcuts to something more convenient (e.g. I useF12
,F11
; the only reason for defaults shortcutsalt-shift-F12
,alt-shift-F11
is that they don't conflict with other actions). - Always check your presentation in advance on the actual setup.
- To enter presentation simply press
Tools -> Show Presentation
.
- Empty lines and lines starting with
--
or#
are ignored. - Each line contains a path to a file with unix-style path separator
/
which can be an absolute path or path relative to the project root. - Paths can include special syntax
{{next N}}
whereN
is the amount of times the line will be repeated with incremented counter. E.g.slides/slides.{{next 2}}.png
will be expanded into two linesslides/slides.000.png
andslides/slides.001.png
.
For example:
# Some comment
/absolute/path/intro.png
-- More slides
slides/slides.{{next 2}}.png
src/code.js
src/more-code.js
slides/slides.{{next 2}}.png
I would like to thank Dmitry Kandalov for his work on non-Compose version of this plugin.