Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Extensions Change Line Height #63791

Closed
MillerMark opened this issue Nov 26, 2018 · 8 comments
Closed

Let Extensions Change Line Height #63791

MillerMark opened this issue Nov 26, 2018 · 8 comments
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code

Comments

@MillerMark
Copy link

MillerMark commented Nov 26, 2018

We would like the following extensibility features in VS Code (to match the same extensibility points already shipping in Visual Studio):

  1. The ability to change a line’s height.
  2. The ability to change a line’s caret height (independently of the line height).
  3. The ability to hide special coded text (such as inside a comment) on the line (or paint over it – like an adornment).
  4. The ability to intercept the mouse click/down/up/over events so we can interact with adornments as first class citizens.

Context: These changes would allow extension developers to create plugins that support editing and viewing of rich documents and source code inside VS Code. For example, developers could edit markdown files, seeing embedded images right inside the file, or developers could add LaTeX formulas to comments and see them rendered beautifully as math formulas in the code. This would also allow the CodeRush team to port over the embedded images feature from CodeRush to VS Code as a free plugin.

Sample Embedded Image in Code

Update: This change will help us port other CodeRush features to VS Code, including:

The Debug Visualizer, which shows the values of expressions under the expression, as you step through the code:

Debug Visualizer

LaTeX Formulas in Source Code Comments:
LaTeX Formulas

Source Code Comments with custom font sizes:
Tiny Comments

@vscodebot vscodebot bot added the editor-contrib Editor collection of extras label Nov 26, 2018
@rebornix rebornix added the feature-request Request for new features or functionality label Nov 26, 2018
@Penagwin
Copy link

Is there any update on this? I wish to do something similar.

@nhustak
Copy link

nhustak commented Sep 8, 2019

I'd love to see this.

@vscodebot vscodebot bot added the *out-of-scope Posted issue is not in scope of VS Code label Oct 24, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 24, 2019

We closed this issue because we don't plan to address it in the foreseeable future. You can find more detailed information about our decision-making process here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Oct 24, 2019
@MihaMarkic
Copy link

The features Mark mentioned looks really awesome and useful in Visual Studio and it's a pity not providing foundations for them in VSCode.

@khiron
Copy link

khiron commented Nov 11, 2019

It's disappointing that I can't see projects my team develop using Visual Studio using CodeRush's LaTeX markup in VS Code. We don't need to put a picture of a rocket ship schematic in a code comment, but we do use LaTeX all the time for computational chemistry.

@usernamehw
Copy link
Contributor

There seems to be a very similar feature, which is now in a proposed state: #66418

@khiron
Copy link

khiron commented Nov 16, 2019

Yes that would be a kludge that might work, but we'd have to render static images instead of typing LaTeX directly into comments in the code editor which is a better use case.

And it wouldn't enable the other features like debug visualization.

@cgbeutler
Copy link

cgbeutler commented Oct 3, 2023

So, is there no way to change a single line's height with an extension or anything?
I'd like to write an extension that resizes markdown headers in comments. Sounds like it may be currently impossible...? But it's proving hard to google for.

I'd like to make it so code like this:

// # Profile
// ## Generation Methods
public socialGeneration: "manual" | "roles" | "buy" = "manual";
// Shared across other methods
public socialGen_Feat: SocialFeature | undefined;
// ### Manual Generation
public readonly socialGen_Manual_Stats

Is rendered with different sizes, much like github renders the following markdown:

// # Profile

// ## Generation Methods

public socialGeneration: "manual" | "roles" | "buy" = "manual";
// Shared across other methods
public socialGen_Feat: SocialFeature | undefined;

// ### Manual Generation

public readonly socialGen_Manual_Stats

(I already know some folks would dislike the above. I'm looking for info related to this feature request, not to derail this page with feedback on my thang.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-contrib Editor collection of extras feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

8 participants