Re:Zed, a collaborative code editor, is now open source
by McBeige on Thursday January 25, 2024 @02:38AM
(#39127184)
Ive been wanting a syntax-tree-viewer for months, to help me learn functional languages where figuring out what is even going on syntax-wise in the exmaples provided by tutorials keeps being an issue for me.
Does anyone know of a way to see a syntax tree for any given snippet of code for any given language? I'd try Zed, but I'll have to wait for Linux support.
[ Parent
| on HN ]
Re:Zed, a collaborative code editor, is now open source
by natrys on Thursday January 25, 2024 @06:34AM
(#39128445)
I am not sure what debug syntax tree mode does in Zed, but if it's about tree-sitter generated syntax tree, you can see that in Neovim or Emacs (assuming you have major-mode/grammar loaded):
1) In Neovim, do `:TSPlaygroundToggle`
2) In Emacs, do `M-x treesit-explore-mode`