most recent 30 from stackoverflow.com2026-01-01T08:53:17Zhttps://stackoverflow.com/feeds/tag?tagnames=zedhttps://creativecommons.org/licenses/by-sa/4.0/rdfhttps://stackoverflow.com/q/798542341那女孩爱笑ihttps://stackoverflow.com/users/217603482025-12-24T08:56:01Z2025-12-24T08:56:01Z
<p>I use the Zed editor for development on Windows 11, with my main technology stack being Python, Vue (including JavaScript/TypeScript), and Go. I have been trying to configure settings.json myself, but the configuration process often encounters issues. Therefore, I would like to seek help from the community: Is there anyone who can share a complete and working settings.json configuration file optimized for these three languages?</p>
https://stackoverflow.com/q/798486081TJLSmith0831https://stackoverflow.com/users/139947972025-12-16T14:33:54Z2025-12-16T19:23:48Z
<p>I'm new to both the Zed IDE and Java and am getting the classic <code>is a non-project file, only syntax errors are reported (Java 16)</code> syntax error. I've found a lot of resources and options to try on VS Code but none specifically for Zed. It is not breaking anything when I run my programs but it is annoying. My <code>settings.json</code> is below:</p>
<pre class="lang-json prettyprint-override"><code>{
"languages": {
"Java": {
"language_servers": ["jdtls"],
"formatter": "language_server"
}
},
"lsp": {
"jdtls": {
"initialization_options": {
"workspaceFolders": [
// This tells JDTLS to treat the 'src' directory as the source root
"file://$ZED_WORKTREE_ROOT/src"
],
"settings": {
"java": {
"project": {
"resourceFilters": ["bin"]
}
}
}
}
}
}
}
</code></pre>
<p>I'm using Maven to manage things. Here's my <code>pom.xml</code> as well:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8" ?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>com.princeton.algorithms</groupId>
<artifactId>algorithms-course</artifactId>
<version>1.0-SNAPSHOT</version>
<name>algorithms-course</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.11.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<!-- Optionally: parameterized tests support -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>edu.princeton.cs</groupId>
<artifactId>algs4</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement
><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.6.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
</code></pre>
<p>My project tree is:</p>
<pre><code>.
├── lib
│ └── algs4.jar
├── pom.xml
├── src
│ ├── main
│ │ └── java
│ │ └── com
│ │ └── princeton
│ │ └── algorithms
│ │ ├── analysis
│ │ │ ├── BitonicSearch.java
│ │ │ └── ThreeSum.java
│ │ ├── App.java
│ │ └── unionfind
│ │ ├── QuickFindUF.java
│ │ └── QuickUnionUF.java
│ └── test
│ └── java
│ └── com
│ └── princeton
│ └── algorithms
│ └── analysis
│ └── ThreeSumTest.java
└── target
├── classes
│ ├── com
│ │ └── princeton
│ │ └── algorithms
│ │ ├── analysis
│ │ │ ├── BitonicSearch.class
│ │ │ └── ThreeSum.class
│ │ └── App.class
│ └── unionfind
│ ├── QuickFindUF.class
│ └── QuickUnionUF.class
├── generated-sources
│ └── annotations
└── maven-status
└── maven-compiler-plugin
└── compile
└── default-compile
├── createdFiles.lst
└── inputFiles.lst
</code></pre>
https://stackoverflow.com/q/789013490Jimiihttps://stackoverflow.com/users/110906412024-08-22T11:36:17Z2025-11-27T23:22:33Z
<p>I installed zed via the installation script <code>curl -f https://zed.dev/install.sh | sh </code>.</p>
<p>I am trying to launch it from the commandline in the project directory I am working in using</p>
<pre class="lang-bash prettyprint-override"><code>zed .
</code></pre>
<p>but getting the error</p>
<pre class="lang-bash prettyprint-override"><code>zsh: command not found: zed
</code></pre>
<p>I tried searching for the binary using <code>where zed</code> and <code>which zed</code> but both can't seem to locate zed <code>zed not found</code></p>
<p>The funny thing is that I can access zed via the applications menu</p>
<p><a href="https://i.sstatic.net/53V7GOtH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/53V7GOtH.png" alt="r" /></a></p>
https://stackoverflow.com/q/798283900Mitesh Firakehttps://stackoverflow.com/users/319350262025-11-24T08:03:23Z2025-11-27T10:54:12Z
<p>I am new to <strong>Java</strong> and starting with <strong>Spring Boot</strong> development. I prefer using lightweight <strong>code editors</strong> like <strong>Zed</strong>, <strong>Lite-XL</strong> and <strong>Helix</strong> and want to avoid the high resource usage and complexity of full IDEs (Eclipse, IntelliJ).</p>
<p>The official Spring Tools are available for VS Code and Eclipse, which I am trying to bypass.</p>
<p>I am looking for advice on the best minimalist setup</p>
<ol>
<li><p><strong>Zed :</strong> Is there a feasible way to achieve productive Spring Boot development (e.g., smart code completion, debugging) directly within a editor like <strong>Zed</strong> (Are there specific extensions, Language Server Protocol (LSP) configurations, or workarounds?)</p>
</li>
<li><p><strong>Minimalist IDE Alternative:</strong> If a full IDE is unavoidable, what is the most <strong>resource-light</strong> and <strong>quick-to-setup</strong> alternative for a Spring Boot project is <strong>neovim</strong> good or it ?, if yes how can i set it up i don't have good experience with vim but i can use <strong>helix</strong></p>
</li>
<li><p><strong>Core Tooling:</strong> What are the <strong>essential command-line tools</strong> and scripts (Maven/Gradle commands) needed to run and manage a Spring Boot project entirely outside of an IDE?</p>
</li>
</ol>
<p>Any tips for a new Java developer who values speed and a minimalist GUI workflow would be greatly appreciated!</p>
https://stackoverflow.com/q/797923861Yashwanth somayajulahttps://stackoverflow.com/users/120790432025-10-16T16:48:08Z2025-10-17T15:41:59Z
<p>I am getting this error when I try to launch the zed code editor and it shows me failed to load eslint language server, other language server are working alright.</p>
<p>Language server eslint:</p>
<pre><code>initializing server eslint, id 7: Server reset the connection
-- stderr --
node:internal/modules/cjs/loader:1222
throw err;
^
Error: Cannot find module 'C:\Users\yashw\AppData\Local\Zed\languages\eslint\vscode-eslint-2.4.4\vscode-eslint\server\out\eslintServer.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1219:15)
at Module._load (node:internal/modules/cjs/loader:1045:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:158:5)
at node:internal/main/run_main_module:30:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.5.1
</code></pre>
https://stackoverflow.com/q/794252651deadcoder0904https://stackoverflow.com/users/61415872025-02-09T16:39:28Z2025-10-16T06:44:28Z
<p>I tried installing biome but can't get it to work in Zed.</p>
<p>I opened a issue on Zed about this which turned out to be wrong - <a href="https://github.com/zed-industries/zed/issues/24430" rel="nofollow noreferrer">https://github.com/zed-industries/zed/issues/24430</a></p>
<p>I read <a href="https://biomejs.dev/reference/zed/#installation" rel="nofollow noreferrer">https://biomejs.dev/reference/zed/#installation</a> & I'm confused as to where the <code><path></code> comes from.</p>
<p>What I want is a global formatter, not a project specific one.</p>
<p>Here's what I did:</p>
<ol>
<li>Install biome from Zed Extension Store</li>
<li>Add the following to <code>settings.json</code></li>
</ol>
<pre class="lang-json prettyprint-override"><code>"formatter": {
"language_server": {
"name": "biome"
}
},
"code_actions_on_format": {
"source.fixAll.biome": true,
"source.organizeImports.biome": true
}
</code></pre>
<p>This didn't work at all.</p>
<p>My goal is to format on save. I even have this in my <code>settings.json</code> file.</p>
<pre class="lang-json prettyprint-override"><code>"format_on_save": "on",
"languages": {
"Markdown": {
"format_on_save": "on"
}
}
</code></pre>
<p>But doesn't help at all.</p>
<p>What to do? There's no resources on this.</p>
https://stackoverflow.com/q/797764731iconoclasthttps://stackoverflow.com/users/2411422025-09-27T01:04:37Z2025-09-27T18:16:35Z
<p>I've read that Go uses</p>
<ul>
<li>tabs for indentation</li>
<li>spaces for alignment</li>
</ul>
<p>and this sounds like a great idea to resolve the tabs-versus-spaces fight and get the benefits that tabs promise without the problems they can create, BUT I cannot find any practical way to implement this in editors with <code>.editorconfig</code>.</p>
<p>There is no setting I can find that will cause my editor to emit tab characters when I hit <kbd>tab</kbd> <em><strong>at the beginning of a line</strong></em> (when only whitespace is on that line) but space characters when there are other (non-whitespace) characters earlier on the same line.</p>
<p>(And NO I am not going to whack on the <kbd>space</kbd> bar to enter spaces for alignment. There is too much muscle memory in using the <kbd>tab</kbd> key, and the tiny benefit of using tabs for indentation would be more than lost a hundred times over compared to the need to whack the <kbd>space</kbd> key over and over and over and over and over and over...)</p>
<p>I use Zed, but the best answer will tell us how to do this in a way that works in all popular editors, such as by using <code>.editorconfig</code>. That might be impossible, in which case the best answer will include directions for multiple popular editors.</p>
<p>(As an aside, I'm curious to know how many Go programmers actually follow this convention.)</p>
<h2>Tangential Update on Why <code>.editorconfig</code> Might Never Do This</h2>
<p>Skip this if you don't like tangents.</p>
<p>While looking at <a href="https://futhark-book.readthedocs.io/en/latest/interoperability.html" rel="nofollow noreferrer">some C code related to Futhark</a>, I realized that some people align code in a way that might make it (nearly?) impossible for their editor to distinguish between indentation and alignment. I never do that (I think it's a horrible practice) but that might explain why the creators of <code>.editorconfig</code> didn't try to solve for the scenario I described. Here's an example:</p>
<pre class="lang-c prettyprint-override"><code>int futhark_unpack(struct futhark_context *ctx,
struct futhark_i32_1d **out0,
struct futhark_i32_1d **out1,
struct futhark_opaque_z31U814583239044437263 *in0);
</code></pre>
https://stackoverflow.com/q/787581681Jokohttps://stackoverflow.com/users/124786612024-07-17T07:27:00Z2025-08-01T18:11:48Z
<p>I was looking into Zed as a potential replacement for VSC, one of the key points of annoyance I've found is that even when calling "zed.exe ." inside of a WSL instance: <a href="https://i.sstatic.net/19M6uLZ3.png" rel="nofollow noreferrer">showing WSL directory in which zed.exe is called</a></p>
<p>I get defaulted to my windows users folder: <a href="https://i.sstatic.net/ZLog80zm.png" rel="nofollow noreferrer">showing directory in which Zed opened</a></p>
<p>How does VSC manage to keep the same directory between subsystem and main OS and can I either apply it in my own build of Zed or contribute it as an optional change to the project? It seems to treat the current repository/directory name as file name to create in "mnt/c/Users/MyName/" and not as a whole path in which to open zed.exe in</p>
<p>This seemingly also works fine with other programs like explorer.exe as shown here: <a href="https://i.sstatic.net/C1eIRIrk.png" rel="nofollow noreferrer">image of explorer.exe being called inside WSL and correctly opening in the WSL directory</a></p>
<p>I tried setting up the code editor Zed in windows but also being able to call it inside WSL like you can do VSC with "code ." but instead with "zed.exe ." instead of opening up in the current directory it opens in my windows users folder with the intended directory's name as a name file it created</p>
https://stackoverflow.com/q/795468750Rokkieshttps://stackoverflow.com/users/225268392025-03-31T17:20:59Z2025-03-31T17:22:01Z
<p>I tried ZED code editor as my new main code editor, and currently I'm working on typescript but my workplace use Jsdoc on Typescript, and on ZED there is warning like this:</p>
<p><strong>ts: JSDoc types may be moved to TypeScript types.</strong>
<a href="https://i.sstatic.net/9bcANNKN.png" rel="nofollow noreferrer">Zed Code warning</a></p>
<p>This little bit annoying for me, any solution to hide this warning <strong>without changing tsconfig file?</strong></p>
<p><strong>ZED Version:0.179.4</strong></p>
https://stackoverflow.com/q/794758720Fahedhttps://stackoverflow.com/users/56408722025-02-28T14:36:57Z2025-02-28T20:21:45Z
<p>I'm trying to set up prompts to allow Zed IDE's AI assistant to apply direct changes to files for me to accept. However, I haven't found any documentation on the required syntax and structure for these patch responses.</p>
<p>Just a couple hours ago, I received a correctly formatted response from the default Claude version connected to Zed which worked perfectly. Sadly, I didn’t save it, assuming Claude "knew" how to generate the right format. Unfortunately, I haven’t been able to replicate it since.
But now even Claude seems to have forgotten everything about it.</p>
<p>From what I can remember, Zed uses a specific XML-like format similar to the following:</p>
<pre><code><patch>
<file name="src/main.ts" />
<old_text>console.log("Hola mundo");</old_text>
<new_text>console.log("Hello world");</new_text>
</patch>
</code></pre>
<p>What is the correct format so that AI assistant’s output is recognized as direct change by Zed? Any pointers to relevant documentation or source code references?</p>
<p><strong>Additionally</strong>, I know that with the right prompt, any AI assistant connected to Zed can generate responses in the correct format. However, I don’t know how to update the <code>Default</code> prompt, and I can’t even view what the current <code>Default</code> prompt is. Any insights on how to modify it?</p>
https://stackoverflow.com/q/794398780jsparkeshttps://stackoverflow.com/users/23670302025-02-14T15:45:43Z2025-02-14T15:45:43Z
<p>I am trying to compile zed on windows 10. I have multiple versions of Visual Studio installed. The "cargo build" is complaining about spectre mitigation libraries not being found. How can I determine which VS version is being used by rust? I have tried adding the spectre libs for several versions, but can't tell which VS rust is checking.</p>
https://stackoverflow.com/q/794048072yesinthttps://stackoverflow.com/users/36494422025-02-01T10:37:52Z2025-02-01T16:45:20Z
<p>I'm trying Zed editor to develop Rust project and it work perfectly except one annoying thing: I can't configure Rust Analyzer to run checks when I type, like it does in VS Code. In Zed Rust Analyzer re-checks only on save and I can't find anywhere how to configure it to do this on the fly when I type.
Anybody knows how to do this?</p>
https://stackoverflow.com/q/792589981Singing Accounthttps://stackoverflow.com/users/241038832024-12-06T18:27:26Z2024-12-06T18:27:26Z
<p>I am trying to install and use Qt6 on my system but have run into issues. Here's my setup:</p>
<pre><code>OS: KDE Neon (Ubuntu-based)
Processor: Intel i5, 5th generation
RAM: 8 GB
</code></pre>
<p>I installed Qt6 using the following commands:</p>
<pre><code>sudo apt update
sudo apt install qt6-base-dev
</code></pre>
<p>I included all dependencies as prompted during installation. However, when I try to run any Qt6 applications using the new Zed IDE, i get an error, <strong>clang: In included file: 'QtWidgets/qtwidgetsglobal.h' file not found'</strong>. If I try using Qt Creator, it says, no kits are available</p>
https://stackoverflow.com/q/792539681Amarok24https://stackoverflow.com/users/59860072024-12-05T08:59:40Z2024-12-05T18:55:11Z
<p>Could someone please help me with this: what is the keybinding to open those pop-up windows in Zed editor which show the function description? See my screenshot. In other editors it’s sometimes called “code lense”.</p>
<p>I’ve looked everywhere and I simply cannot find it (if I only knew how the action is called in the settings file…). I’m using a tiling window manager, so I don’t want to use the mouse every time. Thanks.
<a href="https://i.sstatic.net/vywANto7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vywANto7.png" alt="enter image description here" /></a></p>
https://stackoverflow.com/q/780267847ChrisOramhttps://stackoverflow.com/users/159817832024-02-20T11:02:26Z2024-11-28T12:18:28Z
<p>How does one search for occurances across all files in the Zed editor?</p>
<p>In vscode, I can click on the search icon in the toolbar. Is there an equivilent in Zed?</p>
https://stackoverflow.com/q/790689812Sol Wolfhttps://stackoverflow.com/users/276849022024-10-09T07:06:55Z2024-10-09T07:06:55Z
<p>Im trying to create a program or Zed extension that allows users to write Zed extensions in Lua instead of Rust, but can't find a way to do it. I tried using the mlua crate but embedding it into my extension struct had problems with ownership and thread safety. Here was my code:</p>
<pre><code>use mlua::prelude::*;
use std::sync::{Arc, Mutex};
use zed_extension_api as zed;
struct LuaExtension {
lua: Arc<Mutex<Lua>>,
lua_table: Arc<Mutex<LuaTable<'static>>>,
}
impl zed::Extension for LuaExtension {
fn new() -> Self
where
Self: Sized,
{
// Init Lua environment
let lua = Lua::new();
let lua = Arc::new(Mutex::new(lua));
let lua_script = include_str!("test.lua");
let lua_table = {
let lua_lock = lua.lock().unwrap();
let lua_table: LuaTable = lua_lock
.load(lua_script)
.eval()
.expect("failed to load Lua extension");
Arc::new(Mutex::new(lua_table))
};
LuaExtension { lua, lua_table }
}
fn language_server_command(
&mut self,
_language_server_id: &zed::LanguageServerId,
_worktree: &zed::Worktree,
) -> Result<zed::Command, String> {
// Call the Lua method
let lua_table = self.lua_table.lock().unwrap();
let result: LuaResult<Vec<String>> =
lua_table.call_function("language_server_command", (_language_server_id, _worktree));
match result {
Ok(command) => Ok(zed::Command::from(command[0].clone())),
Err(_) => Err("failed to get command from Lua".to_string()),
}
}
fn run_slash_command(
&self,
_command: zed_extension_api::Command,
_args: Vec<String>,
_worktree: Option<&zed_extension_api::Worktree>,
) -> zed_extension_api::Result<zed_extension_api::CommandOutput, String> {
// Call the Lua method with arguments
let lua_table = self.lua_table.lock().unwrap();
let result: LuaResult<String> =
lua_table.call_function("run_slash_command", (_command, _args, _worktree));
result.map_err(|e| e.to_string())
}
}
zed::register_extension!(LuaExtension);
</code></pre>
<p>I tried wrapping the Lua instance in a Arc<Mutex<>> but that resulted in an error as the Lua class does not implement Send and Sync.</p>
https://stackoverflow.com/q/787347033tanjona Randrianasolohttps://stackoverflow.com/users/166802582024-07-11T09:28:56Z2024-07-11T09:28:56Z
<p>I just installed zed editor or linux and It's not running. I got this error <code>no supported device found</code></p>
https://stackoverflow.com/q/786681132Gohrythttps://stackoverflow.com/users/147567462024-06-25T14:54:32Z2024-07-03T06:31:23Z
<p>I am using zed with zig plugin version 1.1 and zls. I want set up some options like in sublime text</p>
<pre class="lang-json prettyprint-override"><code>{
"languages": {
"Zig": {
"language_servers": ["zls"]
}
},
"lsp": {
"zls": {
"settings": {
"enable_build_on_save": true,
"enable_autofix": true,
"warn_style": true,
"highlight_global_var_declarations": true
}
}
}
}
</code></pre>
<p>but it's not working. Is there anything I should change?</p>