Skip to content

Provide editor.renderWhitespace "selection" option #1477

Closed

Description

@OlsonDev

Sublime Text has the option:

    // Set to "none" to turn off drawing white space, "selection" to draw only the
    // white space within the selection, and "all" to draw all white space
    "draw_white_space": "selection",

I would like to see selection added to list of possible values for editor.renderWhitespace. I find it incredibly useful.

While writing code, I prefer to not show whitespace. However, when I copy-paste code snippets, I like to know the whitespace matches the target document by simply selecting it (usually via Ctrl+A), not using the arrow keys or toggling a setting.

Thanks

Activity

  1. added
    feature-request
    on Dec 19, 2015
  2. bpasero commented on Dec 23, 2015

    @bpasero
    Contributor
  3. elad commented on Jan 18, 2016

    @elad

    I feel bad commenting "+1" on this issue, especially after the open letter to GitHub, but there's no other way of letting you know how important this is to me without doing so. So +1. :)

  4. added
    editor-core
    and removed on Aug 30, 2016
  5. samal-rasmussen commented on Dec 15, 2016

    @samal-rasmussen

    50 thumb ups atm, multiple duplicates, but no no movement on this for a year? Seems like a low hanging fruit ripe for the picking to me. Anybody?

  6. RomainLanz commented on Dec 16, 2016

    @RomainLanz

    Hopefully this will be added in the next release!

  7. mignz commented on Dec 22, 2016

    @mignz

    Taking a while... :(

  8. calebmosher commented on Jan 26, 2017

    @calebmosher

    This seems to be the main issue that is being tracked for this. Any update on when we can expect to see this feature in a future release?

  9. CoolGoose commented on Jan 31, 2017

    @CoolGoose

    It would be great to have this, since it's valuable to know whitespace status in various cases including linting.

  10. spywhere commented on Apr 14, 2017

    @spywhere

    While we wait, I have create an extension explicitly for this issue. Please take a look.

  11. 25 remaining items

  12. UnexpectedLobster commented on Oct 9, 2018

    @UnexpectedLobster

    +1

  13. rodrigogonegit commented on Feb 13, 2019

    @rodrigogonegit

    Any news?

  14. kanlukasz commented on Mar 12, 2019

    @kanlukasz

    Until this is not fixed, we can use:
    https://marketplace.visualstudio.com/items?itemName=spywhere.whiteviz
    Anyway, i think VS Code Team should make it in standard

  15. gsemet commented on Mar 13, 2019

    @gsemet

    thank kanlukasz :)

  16. Otiel commented on Mar 13, 2019

    @Otiel

    Until this is not fixed, we can use:
    https://marketplace.visualstudio.com/items?itemName=spywhere.whiteviz

    Any advantage compared to using the tip shared by alexandrudima?

    	"editor.renderWhitespace": "all",
    	"workbench.colorCustomizations": {
    		"editorWhitespace.foreground": "#ffffffff" // <-- use here the theme's background color
    	}
    

    1477

  17. kanlukasz commented on Mar 13, 2019

    @kanlukasz

    Any advantage compared to using the tip shared by alexandrudima?

    In this plugin you have some extra options, for example - changing this arrows to a straight long lines

    Edit:

    There is one small visual error in this plugin - spywhere/vscode-whiteviz#10

  18. RMacfarlane commented on Jul 22, 2019

    @RMacfarlane

    The setting will be available in tomorrow’s VS Code Insiders, which you can download here if you want to try it out: https://code.visualstudio.com/insiders/. It will be part of our next release in August. Thanks!

  19. spywhere commented on Jul 23, 2019

    @spywhere

    Nice job! I'll update the extension to encourage this change accordingly then. 😄

  20. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-renderingfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions