microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.55k stars 28.66k forks source link

I am trying to find the resize handle in diff editor every time #214195

Open bpasero opened 3 months ago

bpasero commented 3 months ago

I am a big fan of the explicit actions in the diff editor to stage or undo a change, but I find myself constantly trying to find the location where I can grab and resize:

Recording 2024-06-04 at 07 13 18

As you can see, its inconsistent: the first sash is somewhere in the middle (but not exactly!) and the second sash is exactly on the right where the shadow is.

I would love if we could go back to just 1 sash but make the hit area clearly visible by showing a vertical line when you hover anywhere in between the 2 diff editors.

hediet commented 3 months ago

The left sash is not where it should be.

It should look like this: image

Can you share your settings so that I can figure out what causes this space?

bpasero commented 3 months ago
{
    // Editor
    "editor.fontFamily": "Fira Code",
    "editor.fontSize": 13,
    "editor.fontLigatures": true,
    "editor.wordWrap": "off",
    "editor.dragAndDrop": false,
    "editor.folding": true,
    "editor.formatOnSave": true,
    "editor.codeLens": true,
    "editor.renderWhitespace": "none",
    "editor.snippetSuggestions": "none",
    "editor.minimap.enabled": false,
    "editor.find.globalFindClipboard": false,
    "editor.inlineSuggest.enabled": true,
    "editor.smoothScrolling": false,
    "editor.suggestSelection": "first",
    "editor.suggest.localityBonus": true,
    "editor.hover.delay": 800,
    "editor.guides.indentation": false,
    "editor.renderControlCharacters": true,
    "editor.gotoLocation.multipleDefinitions": "goto",
    "editor.mouseWheelScrollSensitivity": 2,
    "editor.autoClosingOvertype": "always",
    "diffEditor.renderIndicators": false,
    "diffEditor.experimental.showMoves": true,
    "diffEditor.renderGutterMenu": false,
    "diffEditor.useInlineViewWhenSpaceIsLimited": false,
    "[jsonc]": {
        "editor.formatOnSave": false,
        "editor.formatOnPaste": false
    },
    "[html]": {
        "editor.formatOnSave": false,
        "editor.formatOnPaste": false
    },
    "[typescript]": {
        "editor.quickSuggestions": {
            "comments": "off",
            "strings": "off",
            "other": "off"
        },
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[javascript]": {
        "editor.quickSuggestions": {
            "comments": "off",
            "strings": "off",
            "other": "off"
        }
    },

    // TypeScript
    "typescript.referencesCodeLens.enabled": false,
    "typescript.updateImportsOnFileMove.enabled": "always",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "typescript.inlayHints.parameterNames.enabled": "none",
    "typescript.preferences.autoImportFileExcludePatterns": [
        "xterm",
        "xterm-headless",
        "node-pty",
        "vscode-notebook-renderer",
        "src/vs/workbench/workbench.web.main.ts",
        "src/vs/workbench/api/common/extHostTypes.ts"
    ],
    "window.zoomLevel": 1,
    "files.dialog.defaultPath": "/Users/bpasero/Development/Microsoft/",
    "workbench.iconTheme": null,
    "workbench.tips.enabled": false,
    "workbench.startupEditor": "none",
    "workbench.tree.renderIndentGuides": "none",
    "workbench.tree.expandMode": "singleClick",
    "workbench.layoutControl.enabled": false,
    "workbench.hover.delay": 2000,
    "window.restoreFullscreen": true,
    "window.newWindowDimensions": "inherit",
    "window.customTitleBarVisibility": "windowed",
    "workbench.editor.empty.hint": "hidden",
    "workbench.editor.decorations.badges": true,
    "workbench.editor.decorations.colors": false,
    "workbench.list.mouseWheelScrollSensitivity": 1.5,
    "breadcrumbs.enabled": false,
    "multiDiffEditor.experimental.enabled": true,
    "workbench.localHistory.maxFileEntries": 200,
    "workbench.editor.enablePreview": false,

    // Testing
    "testing.openTesting": "neverOpen",

    // Terminal
    "terminal.integrated.fontFamily": "Menlo",
    "terminal.integrated.fontSize": 13,
    "terminal.integrated.lineHeight": 1.4,
    "terminal.integrated.windowsEnableConpty": false,
    "terminal.integrated.showExitAlert": false,
    "terminal.integrated.tabs.enabled": true,
    "terminal.integrated.shellIntegration.enabled": true,
    "terminal.integrated.stickyScroll.enabled": false,
    "terminal.integrated.commandsToSkipShell": [
        "workbench.action.openPreviousEditorFromHistory",
        "workbench.action.startTerminalSpeechToText",
        "workbench.action.stopTerminalSpeechToText"
    ],
    "terminal.integrated.initialHint": false,

    // Explorer
    "explorer.decorations.colors": false,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,

    // Search
    "search.actionsPosition": "right",

    // Git
    "git.mergeEditor": true,
    "git.autofetch": true,
    "git.confirmSync": false,
    "git.enableSmartCommit": true,
    "git.ignoreLimitWarning": true,
    "git.branchRandomName.enable": true,
    "git.inputValidationSubjectLength": 500,
    "scm.showIncomingChanges": "never",
    "scm.showOutgoingChanges": "never",
    "git.showActionButton": {
        "commit": false,
        "publish": false,
        "sync": false
    },
    "git.closeDiffOnOperation": true,
    "git.branchPrefix": "ben/",
    "scm.defaultViewMode": "list",
    "scm.alwaysShowRepositories": false,
    "githubPullRequests.fileListLayout": "flat",
    "githubPullRequests.defaultMergeMethod": "squash",
    "githubPullRequests.createOnPublishBranch": "never",
    "githubPullRequests.pullBranch": "never",
    "githubPullRequests.pushBranch": "always",
    "githubPullRequests.postCreate": "none",
    "githubPullRequests.assignCreated": "${user}",
    "githubPullRequests.ignoredPullRequestBranches": [
        "main"
    ],
    "githubIssues.issueCompletionFormatScm":"${issueTitle} (fix ${issueNumberLabel})",
    "githubIssues.queries": [
        {
            "label": "My Issues",
            "query": "assignee:bpasero sort:updated-desc is:open"
        }
    ],
    "githubPullRequests.queries": [
        {
            "label": "Waiting For My Review",
            "query": "is:open review-requested:${user}"
        },
        {
            "label": "Reviewed By Me",
            "query": "is:open reviewed-by:${user}"
        },
        {
            "label": "Assigned To Me",
            "query": "is:open assignee:${user}"
        },
        {
            "label": "Created By Me",
            "query": "is:open author:${user}"
        }
    ],
    "comments.openView": "never",
    "gitblame.statusBarMessageClickAction": "Open tool URL",
    "gitblame.statusBarMessageFormat": "${author.name} (${time.ago})",
    "gitblame.statusBarMessageNoCommit": "",
    "gitblame.ignoreWhitespace": true,

    // Copilot
    "github.copilot.advanced": {
        "debug.overrideChatEngine": "gpt-4",
        "debug.overrideChatMaxTokenNum": 8192,
        "useCAPI": true,
        "debug.reportFeedback": true,
        "renameSuggestionsEnabled": true,
        "debug.useElectronFetcher": true
    },
    "github.copilot.chat.welcomeMessage": "never",
    "github.copilot.editor.enableAutoCompletions": true,
    "inlineChat.mode": "live",
    "debug.internalConsoleOptions": "neverOpen",
    "debug.openDebug": "neverOpen",
    "debug.javascript.autoAttachFilter": "disabled",
    "debug.console.fontFamily": "Fira Code",
    "debug.console.fontSize": 13,
    "debug.console.lineHeight": 20,
    "debug.showBreakpointsInOverviewRuler": true,
    "debug.console.acceptSuggestionOnEnter": "on",
    "debug.javascript.terminalOptions": {
        "outFiles": [
            "${workspaceFolder}/out/**/*.js",
            "${workspaceFolder}/build/**/*.js"
        ]
    },
    "extensions.experimental.supportWorkspaceExtensions": true,
    "extensions.ignoreRecommendations": true,

    // Problems
    "problems.decorations.enabled": true,

    // Update
    "update.showReleaseNotes": false,

    // Dynamic Settings
    "files.autoSave": "afterDelay",
    "workbench.editor.showTabs": "single"
}