Giter VIP home page Giter VIP logo

Comments (5)

bernaferrari avatar bernaferrari commented on May 22, 2024 1

Thanks! haha
Yeah, ideally everybody should be using prettifier or something else. That might be a way to enforce those good practices 😛

from figmatocode.

bernaferrari avatar bernaferrari commented on May 22, 2024

I agree. However, you can access prettify tools very easy, on both vscode and codepen. It is supposed to be just a click (or shortcut) away. Can you give me a scenario where you don't have access to these tools?

from figmatocode.

TanayB11 avatar TanayB11 commented on May 22, 2024

It would be nicer to have it built into the tool mainly to inspect what is going on. For larger (or smaller) HTML outputs, often a user might want to inspect what is coming out to see what they might want to tweak, add, or remove.

I use Vim and haven't figured out how to get that to work yet (I'm certain there's a way, so it's not worth adding it just for that reason).

from figmatocode.

bernaferrari avatar bernaferrari commented on May 22, 2024

The biggest issue is that I append the values to the end of the string, and sometimes use "\n", but it doesn't keep track of indentation. So I would need to keep track and then add the correct number of spaces for every newline..

You could also try this extension: https://github.com/prettier/vim-prettier

from figmatocode.

TanayB11 avatar TanayB11 commented on May 22, 2024

You're right, and it doesn't seem to be worth the effort at this point. Now that I've had some time to think about it, it might just be a better idea to leave it to the editor.

from figmatocode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.