0

I want to create a div that is always placed on the top right of the current active editor window of VS Code via an extension. Ideally, the div is show even when the user change tab.

I tried to find a way via vscode.window but I found nothing to actually create a div. What it's the recommended way?

Even if the editor width is 1000px I need to get this div always on the top right:

enter image description here

One solution that could be ok for me is to add something like that: enter image description here

1 Answer 1

0

The VS Code extensibility has some restrictions about what you can and cannot do in VS Code, and DOM Access is one of them, which means you cannot write an extension that apply custom CSS or add HTML elements to its UI. More details here: https://code.visualstudio.com/api/extension-capabilities/overview#restrictions.

So, you should look at their Extending Workbench and UX Guidelines docs in order to look for alternatives better fit your needs.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, I have edited my question to add a screenshot of a native element. Do you know if it's possible to add something like that or it's also forbidden for extension?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.