Python Editing Terminal installs statistics
By ted-996 · VS Code Marketplace · Other
Edit the active file from Python
Python Editing Terminal has 94,572 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #2468 of 2,515 tracked listings.
Rating: 5.00 / 5 from 1 ratings
About Python Editing Terminal
python-editing-terminal README
Python Editing Terminal is a Python shell for your Visual Studio Code workspace. Right now, it can access and edit the current file, or a selection, and open a new or existing one. It is also possible to use Python Editing Terminal with other languages besides Python.
Examples & Features
Open the Python Editing Terminal from the Command Menu (Ctrl+P >Open Python Editing Terminal). A terminal will open, where you can run arbitrary Python code and use the vscode module.
Examples:
- Get or set the file text (Unicode-aware):
On Python 2, this returns an>>> vscode.editor.text 'This is the content of the current file open in Visual Studio Code.' >>> vscode.editor.text = "Hello World!" >>> vscode.editor.text 'Hello World'unicodeobject; on Python 3, astrobject is returned. - Get or set the file content (UTF-8 encoded, relevant on Python 3):
On Python 2, this returns a>>> vscode.editor.content b'This is the content of the current file open in Visual Studio Code.' >>> vscode.editor.content = "Hello World!" >>> vscode.editor.content b'Hello World'strobject; on Python 3, abytesobject is returned. - Get or set the selection:
>>> vscode.selection.text 's is the content o' >> vscode.selection.text = '-REDACTED-' >> vscode.editor.text 'Thi-REDACTED-f the current file open in Visual Studio Code.` - Get and set the lines in the file (without newlines):
>>> vscode.editor.text 'line1\r\nline2\r\nline3' >>> vscode.editor.lines ['line1', 'line2', 'line3'] >>> vscode.editor.lines = range(4) >>> vscode.editor.text '0\r\n1\r\n2\r\n4' - Get and set the file text as JSON:
>>> vscode.editor.text '[{"field": "value1"}, {"field2": 0, "field": "value2"}]' >>> vscode.editor.json [{u'field': u'value1'}, {u'field2': 0, u'field': u'value2'}] >>> vscode.editor.json = range(4) >>> vscode.editor.json [0, 1, 2, 3] >>> vscode.editor.text '[\n 0, \n 1, \n 2, \n 3\n]' - Get and set the file text as CSV:
>>> vscode.editor.text '1, 2, 3, 4\r\n5, 6, 7, 8' >>> vscode.editor.csv [['1', ' 2', ' 3', ' 4'], ['5', ' 6', ' 7', ' 8']] >>> vscode.editor.csv = [range(2) for _ in range(3)] >>> vscode.editor.csv [['0', '1'], ['0', '1'], ['0', '1']] >>> vscode.editor.text '0,1\r\n0,1\r\n0,1\r\n' - Get and set the file text as TSV:
>>> vscode.editor.text '1\t2\t3\t4\r\n5\t6\t7\t8' >>> vscode.editor.tsv [['1', ' 2', ' 3', ' 4'], ['5', ' 6', ' 7', ' 8']] >>> vscode.editor.tsv = [range(2) for _ in range(3)] >>> vscode.editor.tsv [['0', '1'], ['0', '1'], ['0', '1']] >>> vscode.editor.text '0\t1\r\n0\t1\r\n0\t1\r\n' - Open new tabs:
>>> vscode.editor.new() # This opens a new untitled tab >>> vscode.editor.new(text="Text to be added to the new tab") # keyword arguments `content`, `lines`, `json`, `csv`, and `tsv` are also available, used as above >>> vscode.editor.text 'Text to be added to the new tab' >>> vscode.editor.new(filename="new_file.txt") # `text`, `content`, `lines`, `json`, `csv`, and `tsv` arguments are also available >>> vscode.editor.new(filename="existing_file.txt") # the file will be opened, `text`, `content`, `lines`, `json`, `csv`, and `tsv` arguments can also modify it - Query a REST API directly from your editor:
>>> import requests >>> vscode.editor.new(text=requests.get("http://freegeoip.net/json/www.google.com").text) >>> vscode.editor.json {u'city': u'', u'country_code': u'US', u'country_name': u'United States', u'ip': u'2607:f8b0:4006:812::2004', u'latitude': 37.751, u'longitude': -97.822, u'metro_code': 0, u'region_code': u'', u'region_name': u'', u'time_zone': u'', u'zip_code': u''} - Convert a file from CSV to TSV (or vice-versa):
>>> vscode.editor.tsv = vscode.editor.csv
Reference
The vscode module contains two objects, vscode.editor and vscode.selection that access the entire document, or just the selection, respectively. These expose the following properties:
vscode.editor.text(orvscode.selection.text): The text of the currently open document/selection. Getting it fetches the text from the editor, setting it changes it in the editor. Returns and is set with an Unicode-aware object (unicodeunder Python 2,strunder Python 3).vscode.editor.content(orvscode.selection.content): The text of the current open document/selection, encoded as UTF-8. Can be set likevscode.editor.text. Returns and is set with a non-Unicode-aware object (strunder Python 2,bytesunder Python 3). The distinction is the same ascontentandtextin the Requests Python module.vscode.editor.lines(orvscode.selection.lines): The current document/selection, split as a list of lines. Newlines are stripped (not included in the list entries). Setting it to a list of strings (without trailing newlines) sets the document text to those lines. OS-specific newline style is respected.vscode.editor.json(orvscode.selection.json): The current document/selection, parsed as JSON. Getting it gives you a object parsed from the current document, setting it writes an object as JSON.vscode.editor.csv(orvscode.selection.csv): The current document/selection, parsed as CSV. Getting it gives you a list of lists, setting it writes a list of lists as CSV.vscode.editor.tsv(orvscode.selection.tsv): The current document/selection, parsed as TSV. Getting it gives you a list of lists, setting it writes a list of lists as TSV.
The vscode.editor/vscode.selection objects also expose the following method:…
Description from the VS Code Marketplace listing.
- python
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 Python Editing Terminal alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=ted-996.python-editing-terminal. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.