添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
玩滑板的小虾米  ·  bitset·  5 小时前    · 
纯真的冲锋衣  ·  API: Statuses·  2 天前    · 
勤奋的毛衣  ·  v-scroll 指令 | Quasar ...·  1 周前    · 
淡定的李子  ·  Mouse Position·  1 周前    · 
阳光的骆驼  ·  总攻_百度百科·  5 天前    · 
谦逊的开心果  ·  LSAW钢管API 5L 5CT ASTM ...·  1 月前    · 
善良的红酒  ·  Update to latest ...·  2 月前    · 
  • on Did Change Model Decorations
  • on Did Change Model Language
  • on Did Change Model Language Configuration
  • on Did Change Model Options
  • on Did Content Size Change
  • on Did Dispose
  • on Did Focus Editor Text
  • on Did Focus Editor Widget
  • on Did Layout Change
  • on Did Paste
  • on Did Scroll Change
  • on Key Down
  • on Key Up
  • on Mouse Down
  • on Mouse Leave
  • on Mouse Move
  • on Mouse Up
  • Methods

  • add Action
  • add Command
  • add Content Widget
  • add Overlay Widget
  • apply Font Info
  • change View Zones
  • create Context Key
  • delta Decorations
  • dispose
  • execute Command
  • execute Commands
  • execute Edits
  • focus
  • get Action
  • get Container Dom Node
  • get Content Height
  • get Content Width
  • get Contribution
  • get Dom Node
  • get Editor Type
  • get Id
  • get Layout Info
  • get Line Decorations
  • get Model
  • get Offset For Column
  • get Option
  • get Options
  • get Position
  • get Raw Options
  • get Scroll Height
  • get Scroll Left
  • get Scroll Top
  • get Scroll Width
  • get Scrolled Visible Position
  • get Selection
  • get Selections
  • get Supported Actions
  • get Target AtClient Point
  • get Top For Line Number
  • get Top For Position
  • get Value
  • get Visible Column From Position
  • get Visible Ranges
  • has Text Focus
  • has Widget Focus
  • layout
  • layout Content Widget
  • layout Overlay Widget
  • on Did Composition End
  • on Did Composition Start
  • pop Undo Stop
  • push Undo Stop
  • remove Content Widget
  • remove Overlay Widget
  • render
  • restore View State
  • reveal Line
  • reveal Line InCenter
  • reveal Line InCenter IfOutside Viewport
  • reveal Line Near Top
  • reveal Lines
  • reveal Lines InCenter
  • reveal Lines InCenter IfOutside Viewport
  • reveal Lines Near Top
  • reveal Position
  • reveal Position InCenter
  • reveal Position InCenter IfOutside Viewport
  • reveal Position Near Top
  • reveal Range
  • reveal Range AtTop
  • reveal Range InCenter
  • reveal Range InCenter IfOutside Viewport
  • reveal Range Near Top
  • reveal Range Near Top IfOutside Viewport
  • save View State
  • set Model
  • set Position
  • set Scroll Left
  • set Scroll Position
  • set Scroll Top
  • set Selection
  • set Selections
  • set Value
  • trigger
  • update Options
  • An event emitted when the text inside this editor lost focus (i.e. cursor stops blinking).

    Parameters

    listener: ( ) => void
  • ( ) : void
  • Returns void

    An event emitted when the configuration of the editor has changed. (e.g. editor.updateOptions() )

    Parameters

    listener: ( e : ConfigurationChangedEvent ) => void
  • ( e : ConfigurationChangedEvent ) : void
  • Parameters

    e: ConfigurationChangedEvent

    Returns void

    An event emitted when the text inside this editor gained focus (i.e. cursor starts blinking).

    Parameters

    listener: ( ) => void
  • ( ) : void
  • Returns void

    Execute a command on the editor. The edits will land on the undo-redo stack, but no "undo stop" will be pushed.

    Parameters

    source: string | null | undefined

    The source of the call.

    command: ICommand

    The command to execute

    Returns void

    Execute edits on the editor. The edits will land on the undo-redo stack, but no "undo stop" will be pushed.

    Parameters

    source: string | null | undefined

    The source of the call.

    edits: IIdentifiedSingleEditOperation []

    The edits to execute.

    Optional endCursorState: ICursorStateComputer | Selection []

    Cursor state after the edits were applied.

    Returns boolean

    Get the height of the editor's content. This is information that is "erased" when computing scrollHeight = Math.max(contentHeight, height)

    Returns number

    Get the width of the editor's content. This is information that is "erased" when computing scrollWidth = Math.max(contentWidth, width)

    Returns number

    Get the horizontal position (left offset) for the column w.r.t to the beginning of the line. This method works only if the line lineNumber is currently rendered (in the editor's viewport). Use this method with caution.

    Parameters

    lineNumber: number
    column: number

    Returns number

    Get the visible position for position . The result position takes scrolling into account and is relative to the top left corner of the editor. Explanation 1: the results of this method will change for the same position if the user scrolls the editor. Explanation 2: the results of this method will not change if the container of the editor gets repositioned. Warning: the results of this method are inaccurate for positions that are outside the current editor viewport.

    Parameters

    position: IPosition

    Returns { height : number ; left : number ; top : number } | null

    Get the hit test target at coordinates clientX and clientY . The coordinates are relative to the top-left of the viewport.

    Parameters

    clientX: number
    clientY: number

    Returns IMouseTarget | null

    Hit test target or null if the coordinates fall outside the editor or the editor has no model.

    Instructs the editor to remeasure its container. This method should be called when the container of the editor gets resized.

    If a dimension is passed in, the passed in value will be used.

    Parameters

    Optional dimension: IDimension

    Returns void

    Layout/Reposition a content widget. This is a ping to the editor to call widget.getPosition() and update appropriately.

    Parameters

    widget: IContentWidget

    Returns void

    Layout/Reposition an overlay widget. This is a ping to the editor to call widget.getPosition() and update appropriately.

    Parameters

    widget: IOverlayWidget

    Returns void

    Inherited from IStandaloneCodeEditor . restoreViewState

    Overrides IEditor . restoreViewState

  • Defined in node_modules/monaco-editor/monaco.d.ts:4701
  • Restores the view state of the editor from a serializable object generated by saveViewState .

    Parameters

    state: ICodeEditorViewState

    Returns void

    Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.

    Parameters

    lineNumber: number
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically as necessary and reveal a line close to the top of the viewport, optimized for viewing a code definition.

    Parameters

    lineNumber: number
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.

    Parameters

    lineNumber: number
    endLineNumber: number
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically as necessary and reveal lines close to the top of the viewport, optimized for viewing a code definition.

    Parameters

    lineNumber: number
    endLineNumber: number
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a position centered vertically.

    Parameters

    position: IPosition
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.

    Parameters

    position: IPosition
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport, optimized for viewing a code definition.

    Parameters

    position: IPosition
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a range at the top of the viewport.

    Parameters

    range: IRange
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.

    Parameters

    range: IRange
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition.

    Parameters

    range: IRange
    Optional scrollType: ScrollType

    Returns void

    Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport, optimized for viewing a code definition. Only if it lies outside the viewport.

    Parameters

    range: IRange
    Optional scrollType: ScrollType

    Returns void

    Sets the current model attached to this editor. If the previous model was created by the editor via the value key in the options literal object, it will be destroyed. Otherwise, if the previous model was set via setModel, or the model key in the options literal object, the previous model will not be destroyed. It is safe to call setModel(null) to simply detach the current model from the editor.

    Parameters

    model: ITextModel | null

    Returns void

  • set Selection ( selection : IRange ) : void
  • set Selection ( selection : Range ) : void
  • set Selection ( selection : ISelection ) : void
  • set Selection ( selection : Selection ) : void
  • Set the selections for all the cursors of the editor. Cursors will be removed or added, as necessary.

    Parameters

    selections: readonly ISelection []

    Returns void