Questions tagged [visual-studio-monaco]

Visual Studio Online “Monaco” is a coding environment for the cloud, in the cloud. It complements the desktop IDE as a low friction experience that will help you get started, or make quick changes, to an existing cloud service.

Visual Studio Online “Monaco” is a coding environment for the cloud, in the cloud. It complements the desktop IDE as a low friction experience that will help you get started, or make quick changes, to an existing cloud service. And it is integrated with Visual Studio Online.

“Monaco” is already being used as the technology behind other cloud-based developer experience, from Office 365 “Napa” development to SkyDrive file editing.

More info on MSDN blogs.

76 questions
27
votes
8 answers

Is it possible to edit my code from Visual Studio Online (VS Team Services)?

I have Visual Studio Online (now VS Team Services) account as a part of my MSDN subscription. I managed to create a project there, set a workspace in my local Visual Studio 2013 and check-in some test code. I was wondering if it is also possible to…
Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
23
votes
2 answers

Monaco Editor - How to make some areas readonly

I'm trying to configure the Monaco Editor in a way that certain regions of the textcontent are readonly. More precise, I want the first and last line to be readonly. Example below: public something(someArgument) { // This is readonly // This is…
custi
  • 553
  • 1
  • 4
  • 11
13
votes
1 answer

Writing Visual Studio Code Syntaxes in Monarch

The VSCode documentation contains details on how to create new colorizers using .tmLanguage files. The Monaco editor which VSCode uses has support for defining syntax highlighters using the JSON-based Monarch format, but I can't see how to use…
ajshort
  • 3,684
  • 5
  • 29
  • 43
9
votes
1 answer

How to Add C# Library to Monaco Editor (code completion) and limit possible libraries?

How can I add my custom C# assemblies to Monaco Editor, so the editor would recognize/complete my assembly types? And how could I choose and limit the .net libraries that Monaco Editor can use? Thanks in advance.
Conan.Net
  • 326
  • 1
  • 4
  • 10
7
votes
2 answers

Can only have one anonymous define call per script file

I'm creating monaco editor using loader.js but getting the error "Can only have one anonymous define call per script file" 2 times in console. Code to create editor require.config({ paths: {…
Saurabh Sharma
  • 463
  • 2
  • 7
  • 20
6
votes
0 answers

Monaco Editor Console error: Unexpected Usage at EditorSimpleWorker.loadForeignModule

I am getting Unexpected Usage error Console error when using Monaco Editor inside Electron App. The same code works in Website mode but not in Bundled Electorn app. As mentioned in comment at it may be due to Electron bundle uses file:/// as URI…
Vishnu
  • 2,135
  • 2
  • 30
  • 51
6
votes
1 answer

Monaco editor - linting errors customization with warning/error icons

I've been previously using CodeMirror editor in my project, but recently I have decided to switch to Monaco editor. Now I am trying to provide my users with all the functionalities they had previously (+ additional ones provided by Monaco), and…
mkapiczy
  • 325
  • 3
  • 11
5
votes
0 answers

Why Monaco editor's suggestionHelper opens after every 2nd character key stroke?

I was trying to implement my custom completion item provider for monaco-editor and I was expecting that completionItemProvider will be invoked for every keystroke. Instead, it is getting triggered after every 2nd character. function…
Parth Shah
  • 199
  • 9
4
votes
3 answers

How to use a VSC theme in monaco-editor?

To my understanding monaco-editor and VSCode are using two different formats to define themes. Example: Default Monaco themes Example: Default VSC theme It seems that an earlier version of VSC primarily used the tmTheme definition format which…
4
votes
0 answers

Integrate monaco-yaml with monaco-editor

I am trying to get use of all monaco-eaditor features, so I will combine the monaco-diff editor with monaco-yaml plugin. I was able to build the monaco-diff editor following this…
eftikhar
  • 119
  • 9
4
votes
2 answers

Monaco editor - Pre-populate find control with text

I'm hosting a Monaco editor in my React app. So far, I've got the editor to open the find control when the editor has mounted, but I need to pre-populate it with some text. The bit of code at the moment looks like this: ... class…
4
votes
3 answers

Import monaco editor using require js

I have installed monaco-editor using npm install monaco-editor now I want to require in my js file so I have tried to require using var monaco = require('monaco-editor'); but it is giving me module not found error. Is there wrong I am doing?
Sam
  • 795
  • 2
  • 18
  • 31
3
votes
0 answers

Migrating Monarch language to VSCode

VSCode doesn't support the Monarch grammar in Monaco. I would like to implement syntax highlight in VSCode for a language which has a Monarch syntax highlight. Is there a good way to do so? Or do I have to write the grammar from scratch myself?
Trebor
  • 307
  • 2
  • 10
3
votes
1 answer

Auto-format XML in Monaco Editor

I use the ngx-monaco-editor package in my Angular app to use Monaco Editor. I'm trying to set auto-formatting for XML content. Component @Component({ selector: 'app-my-component', templateUrl: './my.component.html', styleUrls:…
3
votes
0 answers

How to change height of suggestion options in monaco editor

I want to change the height of the rows in the autocomplete menu in Monaco editor. It looks like they are using absolute positioning to handle the list by setting an explicit top value for each row. Is there any way to change this height? I have…
Dhushyanth
  • 43
  • 2
  • 2
1
2 3 4 5 6