Removes line numbers from code snippets generated by LLM-based CLI tools like Gemini and Claude.
LLM-based CLI tools like Gemini and Claude often format generated code, commands, or SQL queries with line numbers. While helpful for reference, these numbers can be cumbersome when you need to copy and paste the output for direct execution—for instance, running a generated SQL script in a database client like Supabase. This tool simplifies the process by quickly removing those line numbers.
Online tool: https://alingse.github.io/lineno-remover/
Input
1 -- 菜品表 (dishes)
2 -- 用于存储每个用户自定义的菜品
3 CREATE TABLE public.dishes (
4 id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
5 created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
6 name TEXT NOT NULL,
7 notes TEXT,
8 user_id UUID DEFAULT auth.uid() REFERENCES auth.users(id) ON DELETE CASCADE NOT NULL
9 );
Output
-- 菜品表 (dishes)
-- 用于存储每个用户自定义的菜品
CREATE TABLE public.dishes (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
name TEXT NOT NULL,
notes TEXT,
user_id UUID DEFAULT auth.uid() REFERENCES auth.users(id) ON DELETE CASCADE NOT NULL
);
移除 Gemini、Claude 等大语言模型(LLM)CLI 工具生成的代码片段中的行号。
Gemini、Claude 等大语言模型 CLI 工具生成的代码、命令或 SQL 查询通常会包含行号。这些行号在参考时很有用,但在需要直接复制并执行代码时(例如,在 Supabase 这样的数据库客户端中运行生成的 SQL 脚本),它们就显得很多余。本工具可以快速移除这些行号,简化您的工作流程。
在线工具: https://alingse.github.io/lineno-remover/
输入
1 -- 菜品表 (dishes)
2 -- 用于存储每个用户自定义的菜品
3 CREATE TABLE public.dishes (
4 id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
5 created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
6 name TEXT NOT NULL,
7 notes TEXT,
8 user_id UUID DEFAULT auth.uid() REFERENCES auth.users(id) ON DELETE CASCADE NOT NULL
9 );
输出
-- 菜品表 (dishes)
-- 用于存储每个用户自定义的菜品
CREATE TABLE public.dishes (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT now() NOT NULL,
name TEXT NOT NULL,
notes TEXT,
user_id UUID DEFAULT auth.uid() REFERENCES auth.users(id) ON DELETE CASCADE NOT NULL
);