You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Bitbucket Cloud中始终以并排模式查看Pull Requests?

在Bitbucket Cloud中始终以并排模式查看Pull Requests

Bitbucket Cloud目前没有官方全局设置来默认启用PR的并排视图,不过可以通过以下两种方法实现需求:

方法1:手动添加URL参数

打开PR页面时,在URL末尾追加?view=side-by-side参数,就能直接以并排模式加载页面。
示例:
原PR链接:https://bitbucket.org/your-workspace/your-repo/pull-requests/456
修改后:https://bitbucket.org/your-workspace/your-repo/pull-requests/456?view=side-by-side

方法2:用浏览器脚本自动切换(推荐)

借助Tampermonkey这类用户脚本管理器,自动给所有PR页面启用并排视图,无需手动修改URL:

  1. 安装Tampermonkey浏览器扩展
  2. 新建用户脚本,粘贴以下代码:
// ==UserScript==
// @name         Bitbucket PR Default Side-by-Side
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  默认以并排模式打开Bitbucket Cloud的Pull Requests
// @match        https://bitbucket.org/*/pull-requests/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const url = new URL(window.location.href);
    if (url.searchParams.get('view') !== 'side-by-side') {
        url.searchParams.set('view', 'side-by-side');
        window.location.replace(url.toString());
    }
})();
  1. 保存脚本后,所有Bitbucket PR页面都会自动跳转到并排视图模式。

内容的提问来源于stack exchange,提问作者propatience

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.27 13:37:11