如何在 Eclipse CDT 中设置默认调试内存视图渲染和单元格大小?

How to set the default debug memory view rendering and cell size in Eclipse CDT?

有没有办法在 Eclipse 中设置默认内存视图渲染和默认单元格大小(对于传统渲染)?当前,每个新添加的内存位置的默认行为是十六进制渲染和 4 字节单元格大小。我找不到通过 GUI 更改它的选项。是否可以完全更改此设置,即通过手动修改首选项?

您可以通过修改 CDT 插件源代码来存档它,然后重新构建 CDT 并重新安装它。

事实上,我正在开发基于 Eclipse 的 MCU IDE,所以我修改了 CDT 源代码 sometimes.For 你的问题,我这样修改了代码并成功了:

public Control createControl(Composite parent)
{
    allocateColors();

    this.fRendering = new RenderingAddressInfo(parent, this);
    **this.fRendering.setColumnsSetting(4);** //I modified this, and workd!
    applyPreferences();

    createMenus();

    return this.fRendering;
}

以上代码来自: CDT_9_3_0\memory\org.eclipse.cdt.debug.ui.memory.traditional\src\org\eclipse\cdt\debug\ui\memory\traditional\TraditionalRendering.java

希望对您有所帮助!