Fix right sidebar banner and docs (#6446)
This commit is contained in:
1 parent
f0cab63a43
commit
7cc612dbce
2 files changed
+33
-28
No files matched your search
@@ -1,8 +1,10 @@
|
||||
---
|
||||
title: "Opening Cline in the Sidebar"
|
||||
title: "Opening Cline in the Right Sidebar"
|
||||
description: "Learn how to open Cline in the right sidebar in VS Code and Cursor"
|
||||
---
|
||||
|
||||
By default, when you first install Cline, it appears in VS Code's left sidebar alongside your file explorer and other extensions. However, for a better coding experience, we recommend moving Cline to the right sidebar. This allows you to keep your project files visible in the left sidebar while chatting with Cline on the right, giving you full visibility of your codebase as Cline works on your project.
|
||||
|
||||
## VS Code
|
||||
|
||||
To open Cline in the right sidebar:
|
||||
@@ -12,7 +14,7 @@ To open Cline in the right sidebar:
|
||||
Make sure your extension view is aligned vertically to the left
|
||||
</Step>
|
||||
<Step title="Open Right Side View">
|
||||
Click the button that opens the right side view in VS Code (the one VS Code uses for GitHub Copilot)
|
||||
Click the button that opens the right side panel in VS Code (typically used to open GitHub Copilot chat). Optionally use the `Option + CMD/Ctrl + B` shortcut.
|
||||
</Step>
|
||||
<Step title="Drag Cline Icon">
|
||||
Drag the Cline icon over to the nav panel at the top of that right view
|
||||
@@ -32,13 +34,19 @@ To open Cline in the right sidebar:
|
||||
|
||||
<Steps>
|
||||
<Step title="Align Extensions">
|
||||
Make sure your extensions are [aligned vertically](https://cursor.com/docs/configuration/migrations/vscode#activity-bar-orientation) to the left
|
||||
Cursor uses a horizontal activity bar by default to optimize space for the AI chat interface ([see here for details](https://cursor.com/docs/configuration/migrations/vscode#activity-bar-orientation)). To switch to vertical:
|
||||
|
||||
1. Open the Command Palette (`CMD/Ctrl + Shift + P`)
|
||||
2. Search for "Preferences: Open Settings (UI)"
|
||||
3. Search for `workbench.activityBar.orientation`
|
||||
4. Set the value to `vertical`
|
||||
5. Restart Cursor for the changes to take effect
|
||||
</Step>
|
||||
<Step title="Open Agent Panel">
|
||||
Click the little cube button that opens Cursor's agent (right side view panel)
|
||||
Click the Cursor cube icon button that opens Cursor's agent (right side view panel)
|
||||
</Step>
|
||||
<Step title="Drag to Three Dots">
|
||||
Drag the Cline icon specifically to the three dots - it doesn't work if you just drag it to the top, it has to be the three dots
|
||||
Drag the Cline icon directly onto the three dots button - it doesn't work if you just drag it to the top, it has to be the three dots
|
||||
</Step>
|
||||
</Steps>
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { Int64Request } from "@shared/proto/cline/common"
|
||||
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
|
||||
import { useCallback } from "react"
|
||||
import { StateServiceClient } from "@/services/grpc-client"
|
||||
|
||||
export const CURRENT_INFO_BANNER_VERSION = 1
|
||||
|
||||
export const InfoBanner: React.FC = () => {
|
||||
const handleClose = useCallback(() => {
|
||||
const handleClose = useCallback((e: React.MouseEvent) => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
const request = Int64Request.create({
|
||||
value: CURRENT_INFO_BANNER_VERSION,
|
||||
})
|
||||
@@ -13,31 +14,27 @@ export const InfoBanner: React.FC = () => {
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="bg-banner-background text-banner-foreground px-3 py-2 flex flex-col gap-1 shrink-0 mb-1 relative text-sm m-4">
|
||||
<h3 className="m-0">💡 Try Cline in the Right Sidebar</h3>
|
||||
<a
|
||||
className="bg-banner-background px-3 py-2 flex flex-col gap-1 shrink-0 mb-1 relative text-sm m-4 no-underline transition-colors hover:brightness-120"
|
||||
href="https://docs.cline.bot/features/customization/opening-cline-in-sidebar"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: "var(--vscode-foreground)" }}
|
||||
target="_blank">
|
||||
<h3 className="m-0">💡 Cline in the Right Sidebar</h3>
|
||||
<p className="m-0">
|
||||
Keep your code visible while chatting with Cline. Drag the Cline icon to your right sidebar panel for better
|
||||
multitasking.
|
||||
</p>
|
||||
<p className="m-0">
|
||||
<a
|
||||
className="text-link cursor-pointer underline"
|
||||
href="https://docs.cline.bot/features/customization/opening-cline-in-sidebar"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank">
|
||||
See how →
|
||||
</a>
|
||||
Keep your files visible when chatting with Cline. Drag the Cline icon to the right sidebar panel for a better
|
||||
experience. <span className="text-link cursor-pointer">See how →</span>
|
||||
</p>
|
||||
|
||||
{/* Close button */}
|
||||
<button
|
||||
aria-label="Close info banner"
|
||||
className="absolute top-3 right-3 opacity-70 hover:opacity-100 cursor-pointer border-0 bg-transparent p-0 text-inherit"
|
||||
<VSCodeButton
|
||||
appearance="icon"
|
||||
data-testid="close-button"
|
||||
onClick={handleClose}
|
||||
type="button">
|
||||
✕
|
||||
</button>
|
||||
</div>
|
||||
style={{ position: "absolute", top: "8px", right: "8px" }}>
|
||||
<span className="codicon codicon-close"></span>
|
||||
</VSCodeButton>
|
||||
</a>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user