Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个项目,该项目将显示从 Monaco 编辑器中选择的相应寄存器号的弹出窗口。为此,我需要在 Monaco 编辑器中选择的行号。如何从编辑器中获取特定的行号并将其传递给 javascript 函数?
提前致谢
你想使用 IStandaloneCodeEditor.getPosition()