GithubHelp home page GithubHelp logo

abdelkderboukert / vscode-django Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vscode-django/vscode-django

0.0 0.0 0.0 846 KB

Beautiful syntax and snippets for perfectionists with deadlines

Home Page: https://marketplace.visualstudio.com/items?itemName=batisteo.vscode-django

License: MIT License

JavaScript 11.36% Python 5.73% TypeScript 82.64% Makefile 0.26%

vscode-django's Introduction

Django extension for Visual Studio Code

Beautiful syntax and scoped snippets for perfectionists with deadlines

Syntax with Gruvbox

Features

Go to definition in templates

Ctrl+click (cmd+click on MacOS) or press F12 on the template path in a include or extends tag to jump to this template

Snippets

  • Support for selected text (when inserting snippet from the menu)
  • Support for copied text
  • No unnecessary new lines

Improved syntax

  • Adds the filetype django-html
  • Adds the filetype django-txt for email templates.
  • Better syntax with more operators and default keywords:
    • Known default tags and filters
    • Known templatetags namespace from contrib in the {% load %} tag
    • Known keywords in tags, like: as, asvar, with, trimmed
  • Syntax highlighting everywhere in your HTML document:
    • In the HTML tag itself"
    • In the id, class or any attribute
    • In inline CSS or Javascript code

Tricks

Gettext and internationalization

Dealing with django.po files? Consider installing the Gettext extension by MrOrz.

Emmet

Add the following item to the Emmet: Include Languages settings:

Item Value
django-html html

Sponsors

Paypal Github Sponsor

Contributing

Issues

Something odd? New feature request? Please create an issue on Github.

Setup

git clone https://github.com/vscode-django/vscode-django
cd vscode-django
npm install
code .

It’s better to have TSlint installed.

Launching the extension debugger

Make sure you have this snippet in .vscode/launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Extension",
      "type": "extensionHost",
      "request": "launch",
      "runtimeExecutable": "${execPath}",
      "args": [
        "--extensionDevelopmentPath=${workspaceFolder}"
      ]
    }
  ]
}

Press F5 or click on Debug then Start (▶️) to launch the extension host window.

Hack around

Press Ctrl + Shift + F5 or 🔄 to reload.

vscode-django's People

Contributors

batisteo avatar zerotask avatar jostcrow avatar rik avatar aeschli avatar hongquan avatar rahmanfadhil avatar staticallytypedrice avatar abdelkderboukert avatar felipebastosweb avatar henribru avatar truongvan avatar yaegassy avatar

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.