Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

How non-developers can easily write tutorials with Didact VS Code

January 31, 2020
Brian Fitzpatrick
Related topics:
Developer toolsIDEs
Related products:
Developer Toolset

    The Didact project is designed to fill a void in Visual Studio Code, but what exactly is it? And more importantly, why should you care?

    Didact started as a "What if?" VS Code doesn’t provide a great way to walk users through a step-wise tutorial. "What if" we could meet that need by combining the following:

    • A simple markup language (such as Markdown or AsciiDoc).
    • The ability to render the markup as HTML using the VS Code webview.
    • A way to invoke the commands we create for each VS Code extension.

    Over the course of a day or so of coding, I had a working prototype.

    Why we named it Didact

    We needed a name. After Googling for unique words not found in the VS Code Marketplace, I came across didact. Merriam Webster’s definition of a didact is a person gifted, trained, or intending to instruct. It was a perfect term to describe what we were after.

    At a high level, the Didact framework is meant to instruct users to complete tasks. The project does this through a combination of text, images, and active links that show VS Code functionality in action. The tricky part is making it easy for non-developers to not only write the tutorials but also interact with the commands they want to invoke. That’s where markup languages like Markdown and AsiiDoc come into the picture. The power comes from pairing that simplicity with VS Code's command framework.

    What does Didact do?

    When developers write a VS Code extension, they create commands and call them via menus, buttons, and the command palette. The API also provides a great way to invoke them in other places. That’s how we leverage Didact.

    The goal of Didact is to employ the "tell them, tell them again, and then tell them what you told them" approach using a combination of text (or text and images) and actions. Imagine that you are presented with Figure 1 in VS Code.

    The Didact window and the Command Palette shown.
    Figure 1: Get help by using VS Code to open a Didact window. This Didact window demonstrates how to open the Command Palette.

     

    This window offers a couple of things. At the top, it provides a brief description that explains what the Command Palette is used for and how to access it. Below, it includes a simple link that opens the palette with a click, showing what happens when you press the right series of keys (e.g., Ctrl+Shift+P).

    If you click the link, it shows you how to invoke a command through the regular keys or menu items, as shown in Figure 2.

     

    Shows the link to reach a command in the palette.
    Figure 2: Click the link that shows how to reach a command in the palette.

     

    The text is written in Markdown. It pulls in simple images and a few links. A simple URI does all the heavy lifting behind the scenes in the active Didact link: didact://?commandId=workbench.action.showCommands&completion=Opened%20Command%20Palette

    If we unpack that URI, we find the command ID for showCommands in VS Code (which is triggered when you press Ctrl+Shift+P on your keyboard) and a completion message that shows what Didact did behind the scenes in a small information popup in the lower right corner, as shown in Figure 2.

    In this case, we told you what we were going to tell you, told you again, illustrated it in action, and then showed it again, reinforcing the effects of clicking the correct keys.

    What’s next for Didact?

    We are just getting started with Didact. We have plans for various expansions, including the project scaffolding functionality. Scaffolding allows you to quickly create a folder or file structure with example files to get you started with the amazing technologies VS Code.

    If you are interested in checking out this evolving framework or want to get involved, we encourage you to poke around our GitHub project page. You can also install the vscode-didact extension and play with it locally.

    We are excited to see how Didact evolves. If you have ideas for how this framework can be used, we would love to hear from you!

    Last updated: November 8, 2023

    Related Posts

    • XML Language Server and the VSCode Extension

    • Cross-language link-time optimization using Red Hat Developer Tools

    • Build your first application using GCC4 on RHEL 7 with Red Hat Developer Toolset (DTS)

    Recent Posts

    • SQL Server HA on RHEL: Meet Pacemaker HA Agent v2 (tech preview)

    • Deploy with confidence: Continuous integration and continuous delivery for agentic AI

    • Every layer counts: Defense in depth for AI agents with Red Hat AI

    • Fun in the RUN instruction: Why container builds with distroless images can surprise you

    • Trusted software factory: Building trust in the agentic AI era

    What’s up next?

    <drupal-media data-entity-type="media" data-entity-uuid="538004f6-d1ae-4f7c-9661-295c3d7f0ec8"></drupal-media> <p>Get a hands-on introduction to daily life as a developer crafting code on OpenShift, the open source container application platform from Red Hat, with <em>OpenShift for Developers.</em></p>

    Get the e-book
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.