diff --git a/docs/features/customization/opening-cline-in-sidebar.mdx b/docs/features/customization/opening-cline-in-sidebar.mdx index e9d2042a..db12a5c9 100644 --- a/docs/features/customization/opening-cline-in-sidebar.mdx +++ b/docs/features/customization/opening-cline-in-sidebar.mdx @@ -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 - 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. 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: - 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 - 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) - 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 diff --git a/webview-ui/src/components/common/InfoBanner.tsx b/webview-ui/src/components/common/InfoBanner.tsx index 4e5e28fa..1d68bbf4 100644 --- a/webview-ui/src/components/common/InfoBanner.tsx +++ b/webview-ui/src/components/common/InfoBanner.tsx @@ -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 ( -
-

💡 Try Cline in the Right Sidebar

+ +

💡 Cline in the Right Sidebar

- Keep your code visible while chatting with Cline. Drag the Cline icon to your right sidebar panel for better - multitasking. -

-

- - See how → - + Keep your files visible when chatting with Cline. Drag the Cline icon to the right sidebar panel for a better + experience. See how →

{/* Close button */} - -
+ style={{ position: "absolute", top: "8px", right: "8px" }}> + + + ) }