我使用 monaco.editor.create 方法来创建模型。问题是 monaco 正在将多行代码解析为 Windows 操作系统中的 \r\n 格式。
我尝试在 monaco.editor.create() 的 editorOptions 中使用 defaultEOL 作为“LF”
let editorOptions = {
value,
quickSuggestions: { other: true, comments: true, strings: true },
language: language,
tabSize: tabSize,
...options
};
this._editor = monaco.editor.create(this._node, editorOptions);
Run Code Online (Sandbox Code Playgroud)
我希望摩纳哥编辑器请求我的 API 的值\n
Laravel需要设定路径.它完成了
export PATH="$PATH:$HOME/.composer/vendor/bin"
Run Code Online (Sandbox Code Playgroud)
在bash但是我需要它坚持在鱼壳中完成.我尝试通过〜/ .config/fish/config.fish中的-u设置它但不起作用.