Comments (5)
This is now implemented in v1.66.0. Format Document and Format Selection/Cell are both available, keyed off of the cell where the cursor is located (or failing that using the language most frequently appearing within executable cells in the document).
This currently works for Python and Julia. It is enabled for R but there are some things we need to work through w/ the VS Code R extension to make it work properly.
from quarto.
This is currently difficult for us to do without an API for the formatter. Not impossible, just not as easy as hooking up other things.
from quarto.
duplicate of #41
from quarto.
Thank you for your work on this. Is it possible to get to this to work with OJS (Observable JavaScript) cells?
from quarto.
The Format Cell command should work in some cases for OJS, however formatters can also end up choking on the special OJS syntax (e.g. view) so it won't always work as expected.
from quarto.
Related Issues (20)
- Add option to set CLI args from VSCode
- Revealjs preview (within VS Code) often does not go to current slide, most notably when `slide-level` is set in project- or directory- level YAML
- VS Code Extension: Preview ignores `output-dir` in `_quarto.yml`
- VS Code Extension: Formatter forces 4 space indentation
- BUG: check boxes in vscode visual editor are not rendering correctly
- BUG: In vscode live editor a link to a local pdf file won't open the pdf when clicking on it
- Feature Request: support <mark></mark> in vscode visual editor for highlighting
- VS Code extension: "insert code cell" behavior from inside a code cell
- Run code button missing in Python cells in Visual mode for VS Code HOT 2
- VSCode Extension: "Executing python cells requires the Jupyter extension." HOT 5
- Feature Request: Option to Suppress Automatic Bibliography in PDF Output HOT 2
- Preview toolbar button in VS Code looks weird HOT 3
- Setting to disable the Quarto extension for .md files
- Zoom "Auto" is not working as expected
- Enable SQL Syntax Highlighting in String Literals in VS Code
- vscode extension: citation window pops up when mousing over *any* part of a paragraph after a citation
- "Run Cell" won't work with cell under list item using a letter HOT 1
- Cross-referencing for numbered examples - it works, but there is no autocomplete HOT 1
- Issue with Quarto LSP. Pandoc hangs when requesting completion and consumes memory and cpu until killed when using static code blocks in a certain way.
- Slow cross-reference autocomplete for larger projects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarto.