English
niQin 分享格言: 生活赋予我们的一种巨大的和无限高贵的礼品,这就是青春:充满着力量,充满着期待、志愿,充满着求知和斗争的志向,充满着希望、信心的青春。 -- 保尔·柯察金
每个作品的所有权利均属于作者,iRust.net 不负任何责任。 若有不当之处,请联系 ask@iRust.net。

Zed - Code at the speed of thought No.64b60a05443528bf150fbeab

Explorer 发布于 2023-07-18 11:42:29+08

2630 点击 / / 27 进入

💥 作品内容

关键词/标签: rust text-editor

Zed is a fast and social code editor, with high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Breadcrumbs

A breadcrumb trail below the tab bar that shows the path to the current file along with a summary of the containing syntax nodes

A breadcrumb trail is displayed at the top of multi-buffers and singleton buffers with the path of the file containing the cursor along with a summary of the containing syntax nodes. This can be especially helpful in multi-buffers or within large functions.

CLI

To install the zed command line tool, select Zed > Install CLI from the application menu. Then you can type zed my-path on the command line to open a directory or file in Zed. To use Zed as your $EDITOR to edit Git commits etc, add export EDITOR=“zed –wait” to your shell profile.

Code Actions

Whenever you see a lightning bolt next to the gutter, it means a code action is available for the current cursor location from the language server. You can click the lightning bolt or press cmd-. to reveal available actions.

Code actions affecting multiple files will present the results of the action in a multi-buffer. To undo the action, simply hit cmd-z in the multi-buffer, although we don’t yet support undoing file-system changes. To save the results of a multi-file code action, just save the multi-buffer.

Collaboration

Adding contacts

You can add a contact from the collaboration menu, deployed from the icon in the upper right corner of the window, or by pressing cmd-shift-c and then clicking the add button to the right of the search box.

If you are trying to collaborate with someone who hasn’t started using Zed yet, get them to download Zed and sign in, then you can add them.

Sharing a project

You’ll see all your online contacts in the collaboration menu. Searching or clicking on them will send a request to start a call and share your current project with them. They will receive a notification to join your call.

This will open a new window containing their project. Once you have joined the call, your zed windows will show the participants of the call next to your icon in the top right. Grayscale participants are in the call but currently viewing a different project. Non-grayscale participants are in the same project as you.

Projects not yet shared with the call will have a share button in which will enable others to join your project.

Our goal is to eliminate the distinction between local and remote projects as much as possible. Guests can open, edit, and save files, perform searches, interact with the language server, etc.

Following a collaborator

When you join a project, you’ll immediately start following the host as they move within and between files. This is represented by a border around the editor.

You automatically stop following whenever you move the cursor or edit. To start following again, you can click on a collaborator’s avatar or cycle through following different participants by pressing ctrl-alt-cmd-f.

Following is confined to a particular pane. When a pane is following a collaborator, it is outlined in their cursor color. This pane-specific behavior allows you to follow someone in one pane while navigating independently in another, and can be an effective layout for some styles of collaboration.

You may switch projects via the collaboration menu which shows current participants and any projects they may be sharing.

Screensharing

Sometimes you must go beyond code when collaborating, like looking at a website or a drawing. Zed’s built-in screen-sharing allows you to share your screen without additional tools easily. Click the “Share Screen” button in the upper right to share your screen.

Once you start sharing your screen, the other participants in the call can see everything on your screen. This can be helpful for collaboration, troubleshooting, or simply sharing information with others.

Always be cautious when screen sharing– avoid accidentally exposing personal information, passwords, or secrets.

Currently, Zed only supports sharing your entire screen.

资源文件: 1 zed-2.png
2 zed-3.png
3 zed-4.png

网站: https://zed.dev

源码网址: https://github.com/zed-industries/community

💥 联系方式

联系人: Explorer

查看作品详细联系信息,请 签入 iRust


iRust.net 不负任何法律责任。 请自行甄别风险,谨防上当受骗。