Developer Tools165k+ stars

VS Code

Visual Studio Code - the most popular code editor

Commit Details

Message
"Initial public release"
Author
Benjamin Pasero
Date
2015-09-03
Hash
d2e414c56cc24af04dcf9a5dbc4e6e5dbecf1b9c

Fun Fact

VS Code was built with Electron, which was originally created for the Atom editor by GitHub.

</>First Code

TypeScript
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License.
 *--------------------------------------------------------------------------------------------*/

'use strict';

import {IEditor, IRange, IPosition, IEditorOptions} from 'vs/editor/common/editorCommon';

export interface ICodeEditor extends IEditor {
	focus(): void;
	hasTextFocus(): boolean;
	
	/**
	 * Returns the primary position of the cursor.
	 */
	getPosition(): IPosition;
	
	/**
	 * Set the primary position of the cursor.
	 */
	setPosition(position: IPosition): void;
}