Giter Site home page Giter Site logo

cscheid / quarto-vscode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quarto-dev/quarto-vscode

0.0 0.0 0.0 2.64 MB

Quarto extension for VS Code

Home Page: https://marketplace.visualstudio.com/items?itemName=quarto.quarto

License: MIT License

JavaScript 7.38% TypeScript 92.62%

quarto-vscode's Introduction

quarto-vscode

VS Code extension for the Quarto scientific and technical publishing system. This extension provides language support for Quarto .qmd files, including:

  • Syntax highlighting for markdown and embedded languages
  • Commands and key-bindings for running cells and selected line(s)
  • Completion for embedded languages (e.g. Python, R, LaTeX, etc.)
  • Completion and diagnostics for project files and document/cell options
  • Code snippets for common markdown constructs
  • Code folding and document outline for navigation within documents
  • Workspace symbol provider for navigation across project files

Installation

The easiest way to install is directly from within VS Code (search extensions for "quarto").

You can also install from the VS Code Extension Marketplace or directly from a VISX extension file.

Features

Code Cells

There are a variety of tools that make it easier to edit and execute code cells. Editing tools include syntax highlighting, code folding, code completion, and signature tips:

For Python cells, commands are available to execute the current cell, previous cells, or the currently selected line(s). Cell output is shown side by side in the Jupyter interactive console:

Execute the current cell with Ctrl+Shift+Enter, the current line(s) with Ctrl+Enter, or previous cells with Ctrl+Alt+P (note that on the Mac you should use Cmd rather than Ctrl as the prefix for all Quarto keyboard shortcuts).

Enhanced features for embedded languages (e.g. completion, code execution) can be enabled by installing one or more of these other extensions:

YAML Intelligence

YAML code completion is available for project files, YAML front matter, and executable cell options:

If you have incorrect YAML it will also be highlighted when documents are saved:

Note that YAML intelligence features require version 0.9.44 or later of the Quarto CLI.

Code Snippets

Code snippets are templates that make it easier to enter repeating code patterns (e.g. code blocks, callouts, divs, etc.). Execute the Insert Snippet command within a Quarto document to insert a markdown snippet:

Document Navigation

If you have a large document use the outline view for quick navigation between sections:

You can also use the Go to Symbol in Editor command (Ctrl+Shift+O) keyboard shortcut for type-ahead navigation of the current document's outline.

Use the Go to File command (Ctrl+P) to navigate to other files and the Go to Symbol in Workspace command (Ctrl+T) for type-ahead navigation to all headings in the workspace:

VISX Install

You can alternatively download and install the extension from the command line as follows:

  1. Download the extension file: Quarto VS Code (VISX)

  2. Install from the command line with:

    code --install-extension quarto-1.6.0.vsix

Note that in order to use the code command to perform the installation you may need to open the VS Code Command Palette (Ctrl+Shift+P) and type "shell command" to execute the Shell Command: Install 'code' command in PATH command. This will make sure that code can be invoked from the command line on your system.

quarto-vscode's People

Contributors

jjallaire avatar cscheid avatar gvelasq 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.