[{"data":1,"prerenderedAt":415},["ShallowReactive",2],{"doc-\u002Fen\u002Fdocs\u002Fguides\u002Fai-chat":3,"doc-surround-\u002Fen\u002Fdocs\u002Fguides\u002Fai-chat":313,"doc-nav-en":320},{"id":4,"title":5,"body":6,"description":303,"extension":304,"meta":305,"navigation":306,"order":307,"path":308,"section":309,"seo":310,"stem":311,"__hash__":312},"docs_en\u002Fen\u002Fdocs\u002F02.guides\u002F05.ai-chat.md","AI Chat & Inline Edit",{"type":7,"value":8,"toc":295},"minimark",[9,13,26,31,34,79,82,96,100,112,172,183,197,201,204,255,259,266,287],[10,11,5],"h1",{"id":12},"ai-chat-inline-edit",[14,15,16,17,21,22,25],"p",{},"LingXizhi offers two AI interaction paths: the ",[18,19,20],"strong",{},"sidebar chat"," handles Q&A, design discussion, and multi-round tasks, while ",[18,23,24],{},"Inline Edit"," makes instant rewrites to selected code. Both share the same model configuration, so you can switch freely per scenario.",[27,28,30],"h2",{"id":29},"sidebar-chat","Sidebar Chat",[14,32,33],{},"The AI panel on the right has six tabs:",[35,36,37,44,50,67,73],"ul",{},[38,39,40,43],"li",{},[18,41,42],{},"Chat",": multi-round conversation with streaming output; tool calls are visible in real time.",[38,45,46,49],{},[18,47,48],{},"Tools",": a full record of tool calls in the current session, with the call count shown as a badge on the tab.",[38,51,52,55,56,60,61,66],{},[18,53,54],{},"RUSH",": the deep task panel; its badge shows live stage progress (e.g. ",[57,58,59],"code",{},"2\u002F5","). See ",[62,63,65],"a",{"href":64},"\u002Fen\u002Fdocs\u002Fguides\u002Frush","RUSH Deep Task",".",[38,68,69,72],{},[18,70,71],{},"Changes",": the list of file changes produced by the AI — review each item before accepting.",[38,74,75,78],{},[18,76,77],{},"Spec \u002F Cloud",": spec management and cloud sandbox tasks.",[14,80,81],{},"Both chat and tool calls stream back over SSE, so even long tasks show their intermediate progress in real time.",[83,84,86],"callout",{"type":85},"tip",[14,87,88,91,92,66],{},[18,89,90],{},"Choosing a model",": chat uses the current model from \"Settings → Models\", with native support for 15+ mainstream models including Kimi K3 and GLM-5.2. See ",[62,93,95],{"href":94},"\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fmodels","Models & Context",[27,97,99],{"id":98},"inline-edit-ctrlk","Inline Edit (Ctrl+K)",[14,101,102,103,107,108,111],{},"Select code and press ",[104,105,106],"kbd",{},"Ctrl"," + ",[104,109,110],{},"K",", then describe your change in natural language in the input box, or pick a preset action directly. The request automatically carries the current file path and language, so the model produces a syntactically valid rewrite. The five preset actions:",[113,114,115,128],"table",{},[116,117,118],"thead",{},[119,120,121,125],"tr",{},[122,123,124],"th",{},"Action",[122,126,127],{},"Effect",[129,130,131,140,148,156,164],"tbody",{},[119,132,133,137],{},[134,135,136],"td",{},"Refactor",[134,138,139],{},"Improve naming, structure, and readability with behavior fully unchanged",[119,141,142,145],{},[134,143,144],{},"Explain",[134,146,147],{},"Add concise inline comments",[119,149,150,153],{},[134,151,152],{},"Document",[134,154,155],{},"Generate standard doc comments (JSDoc \u002F docstring \u002F rustdoc)",[119,157,158,161],{},[134,159,160],{},"Test",[134,162,163],{},"Generate unit tests using the project's mainstream test framework",[119,165,166,169],{},[134,167,168],{},"Find similar",[134,170,171],{},"Extract repeated patterns into a reusable shared function",[14,173,174,175,178,179,182],{},"Results appear as an ",[18,176,177],{},"inline diff card",": only the changed region is expanded — click \"Accept\" to apply, or press ",[104,180,181],{},"Esc"," to discard. With no code selected, Inline Edit generates a continuation suggestion (Ghost Text) at the cursor.",[83,184,185],{"type":85},[14,186,187,190,191,194,195,66],{},[18,188,189],{},"Inline Edit vs RUSH",": use Inline Edit for single-point changes and small-scope rewrites — it responds faster and ",[18,192,193],{},"does not count against Agent runs","; for tasks spanning 3+ files that need planning and verification, use ",[62,196,54],{"href":64},[27,198,200],{"id":199},"preserved-thinking","Preserved Thinking",[14,202,203],{},"With thinking mode enabled, preserving thinking content across multiple turns prevents reasoning quality from degrading. Retention differs by model, and LingXizhi adapts automatically per model:",[113,205,206,216],{},[116,207,208],{},[119,209,210,213],{},[122,211,212],{},"Model",[122,214,215],{},"Retention method",[129,217,218,229,243],{},[119,219,220,223],{},[134,221,222],{},"Kimi K3",[134,224,225,226],{},"Thinking persists; intensity controlled by ",[57,227,228],{},"reasoning_effort",[119,230,231,234],{},[134,232,233],{},"GLM-5.2",[134,235,236,239,240],{},[57,237,238],{},"thinking"," parameter carries ",[57,241,242],{},"clear_thinking: false",[119,244,245,248],{},[134,246,247],{},"Kimi K2.6",[134,249,250,239,252],{},[57,251,238],{},[57,253,254],{},"keep: \"all\"",[27,256,258],{"id":257},"related-configuration","Related Configuration",[14,260,261,262,265],{},"You can tune related behavior in ",[57,263,264],{},"lxz.config.json",":",[35,267,268,278],{},[38,269,270,273,274,277],{},[57,271,272],{},"ide.inline_edit_context_lines"," (default ",[57,275,276],{},"5","): how many context lines Inline Edit carries when rewriting.",[38,279,280,273,283,286],{},[57,281,282],{},"ide.chat_position",[57,284,285],{},"right_panel","): position of the AI chat panel.",[14,288,289,290,294],{},"See ",[62,291,293],{"href":292},"\u002Fen\u002Fdocs\u002Freference\u002Fconfiguration","Configuration"," for the full list of options.",{"title":296,"searchDepth":297,"depth":297,"links":298},"",2,[299,300,301,302],{"id":29,"depth":297,"text":30},{"id":98,"depth":297,"text":99},{"id":199,"depth":297,"text":200},{"id":257,"depth":297,"text":258},"Chat with AI in multiple rounds in the sidebar, inspect tool calls and file changes, or use Ctrl+K to inline-edit selected code","md",{},true,5,"\u002Fen\u002Fdocs\u002Fguides\u002Fai-chat","Feature Guides",{"title":5,"description":303},"en\u002Fdocs\u002F02.guides\u002F05.ai-chat","LesqpDIj7ddic3QTTfzisyISw7ul3tZJk-976Q6YtFk",[314,318],{"title":315,"path":316,"stem":317,"children":-1},"Migrate from VS Code","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigrate-from-vscode","en\u002Fdocs\u002F01.getting-started\u002F04.migrate-from-vscode",{"title":65,"path":64,"stem":319,"children":-1},"en\u002Fdocs\u002F02.guides\u002F06.rush",[321],{"title":322,"path":323,"stem":324,"children":325,"page":349},"En","\u002Fen","en",[326],{"title":327,"path":328,"stem":329,"children":330,"page":349},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[331,350,376,392],{"title":332,"path":333,"stem":334,"children":335,"page":349},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F01.getting-started",[336,340,344,348],{"title":337,"path":338,"stem":339},"Installation & Download","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F01.getting-started\u002F01.installation",{"title":341,"path":342,"stem":343},"Register & Sign In","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fregister-login","en\u002Fdocs\u002F01.getting-started\u002F02.register-login",{"title":345,"path":346,"stem":347},"First-Time Setup","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ffirst-setup","en\u002Fdocs\u002F01.getting-started\u002F03.first-setup",{"title":315,"path":316,"stem":317},false,{"title":309,"path":351,"stem":352,"children":353,"page":349},"\u002Fen\u002Fdocs\u002Fguides","en\u002Fdocs\u002F02.guides",[354,355,356,360,364,368,372],{"title":5,"path":308,"stem":311},{"title":65,"path":64,"stem":319},{"title":357,"path":358,"stem":359},"FIM Code Completion","\u002Fen\u002Fdocs\u002Fguides\u002Ffim-completion","en\u002Fdocs\u002F02.guides\u002F07.fim-completion",{"title":361,"path":362,"stem":363},"Semantic Code Graph","\u002Fen\u002Fdocs\u002Fguides\u002Fcode-graph","en\u002Fdocs\u002F02.guides\u002F08.code-graph",{"title":365,"path":366,"stem":367},"MCP Tools & Marketplace","\u002Fen\u002Fdocs\u002Fguides\u002Fmcp","en\u002Fdocs\u002F02.guides\u002F09.mcp",{"title":369,"path":370,"stem":371},"Debugging & DAP","\u002Fen\u002Fdocs\u002Fguides\u002Fdebugging","en\u002Fdocs\u002F02.guides\u002F10.debugging",{"title":373,"path":374,"stem":375},"Integrated Terminal","\u002Fen\u002Fdocs\u002Fguides\u002Fterminal","en\u002Fdocs\u002F02.guides\u002F11.terminal",{"title":377,"path":378,"stem":379,"children":380,"page":349},"Models & Billing","\u002Fen\u002Fdocs\u002Fmodels-billing","en\u002Fdocs\u002F03.models-billing",[381,384,388],{"title":382,"path":94,"stem":383},"Models","en\u002Fdocs\u002F03.models-billing\u002F12.models",{"title":385,"path":386,"stem":387},"Plans & Credits","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fplans-quota","en\u002Fdocs\u002F03.models-billing\u002F13.plans-quota",{"title":389,"path":390,"stem":391},"BYOK (Bring Your Own Key)","\u002Fen\u002Fdocs\u002Fmodels-billing\u002Fbyok","en\u002Fdocs\u002F03.models-billing\u002F14.byok",{"title":393,"path":394,"stem":395,"children":396,"page":349},"Reference & FAQ","\u002Fen\u002Fdocs\u002Freference","en\u002Fdocs\u002F04.reference",[397,401,403,407,411],{"title":398,"path":399,"stem":400},"Keyboard Shortcuts","\u002Fen\u002Fdocs\u002Freference\u002Fshortcuts","en\u002Fdocs\u002F04.reference\u002F15.shortcuts",{"title":293,"path":292,"stem":402},"en\u002Fdocs\u002F04.reference\u002F16.configuration",{"title":404,"path":405,"stem":406},"Kernel API","\u002Fen\u002Fdocs\u002Freference\u002Fkernel-api","en\u002Fdocs\u002F04.reference\u002F17.kernel-api",{"title":408,"path":409,"stem":410},"FAQ","\u002Fen\u002Fdocs\u002Freference\u002Ffaq","en\u002Fdocs\u002F04.reference\u002F18.faq",{"title":412,"path":413,"stem":414},"Cloud REST API","\u002Fen\u002Fdocs\u002Freference\u002Fcloud-api","en\u002Fdocs\u002F04.reference\u002F19.cloud-api",1788542300514]