Giter VIP home page Giter VIP logo

vscode-tips-tricks's Introduction

hr

hr


Ahmad Awais is a multiple award-winning open-source engineer, Founder, CEO of ⌘ Langbase.com — Ship hyper-personalized AI assistants with memory, Ex-VP of Developer Relations Eng (DevRel & DX), Google Developers Advisory Board founding member, GitHub Star (3x GitHub Gold Stars award), Google Developers Expert, Microsoft MVP, DigitalOcean Navigator, Cloudflare Developer Expert, listed #1 JavaScript trending developer by GitHub, Node.js Community Committee Outreach Lead, Business Governance Board (BGB) Member Linux Foundation & OpenAPI Initiative, WordPress Core​ Developer, ex CMO and VP ​of ​Engineering​​ at WGA.

He has authored hundreds of open-source software tools millions of developers use worldwide, like his Shades of Purple code theme​ or projects like the​ corona-cli, create-node-cli, WPGulp, and specs like Emoji-Log.

Awais contributed code to NASA’s Ingenuity Mars Helicopter mission. “What an awesome example for developers,” said Satya Nadella, CEO of Microsoft — featuring Awais’s code contribution to NASA Ingenuity Mars mission. Press mentions.

​Awais ​loves to teach. Over 108K developers are learning from his courses, i.e., NodeCLI.com, VSCode.pro, &​ NextjsBeginner.com​​. Awais has delivered keynotes and talks at 100+ tech conferences, including TEDx, ReactLive, Node Summit, Google Dev Summit, and Next.js Conf. ​

Awais received the FOSS community leadership recognition as one of the first 12 featured GitHub Stars with a Gold GitHub Stars Award. ​He is a member of the SmashingMagazine Experts Panel; a featured & published author at CSS-Tricks, Tuts+, Scotch.io, and SitePoint. You can mostly find ​him on Twitter @MrAhmadAwais, where he tweets his #OneDevMinute developer tips.​


hr

hr



NodeCLI.com  IMP: I'm teaching developers how to automate their work and life with JavaScript

Twitter @MrAhmadAwais  (follow) To get #OneDevMinute development tips

YouTube AhmadAwais (subscribe) Tech talks & #OneDevMinute videos

Blog: AhmadAwais.com (read) In-depth & long form technical articles

LinkedIn @MrAhmadAwais (connect) On LinkedIn y'all

Sponsor Awais

❯❯ Professional Development Courses ↓

Node CLI Course VSCode Course Node.js Course


hr

hr

vscode-tips-tricks's People

Contributors

ahmadawais avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-tips-tricks's Issues

phpcbf uses wrong path on Windows (WSL)

Issue

When using the SaveAndRun command to automatically trigger phpcbf when saving a php file, the file path is not working due to forward slashes being omitted.

Solution

Install the "Save and Run with WSL" extension by author "rascui" and extend the SaveAndRun command with the line "wsl: true" as follows:

"saveAndRun": {
        "commands": [
            {
                "match": "\\.php$",
                "cmd": "phpcbf -q --standard='WordPress' ${file}",
                "silent": true,
                "wsl": true
            }
        ]
    },

Unable to locate PHPCS from nested directory in Windows

In my VSCode workspace I have a complete WordPress setup although I have to work mostly on plugins. Below is the sample screenshot hope you understand my situation :)

capture

My question is if I am working on nested directory where composer.json, phpcs.xml and vendor directory is located then also it loads phpcs from globally installed path. Thus plugins wise phpcs installed sniffs are not in priority. Thus I am getting sniff not found error. This is the custom sniff I have defined and was thrown error because of not loading phpcs from that particular directory. Any help on this scenerio will be much helpful and I couldn't find any hint from #50PHP: Setting VSCode for PHP + WordPress

How to Edit Auto-Formating Rules for CSS/SCSS/LESS using Prettier in VSCode?

Background:

I'm using Prettier - Code formatter extension for VSCode to auto-format my code on save.

Problem:

I'm used to writing single-line blocks in my sass files (where there's only a single property) i.e.

.some-class { background: #f00; }

Problem is the Prettier extension formats it to multi-lines i.e.

.some-class {
    background: #f00;
}

Solution:

The Prettier - Code formatter extension for VSCode doesn't have an option to edit stylesheets linting from VSCode Settings. However, there is an option to enable stylelint integration but this requires stylelint and stylelint-prettier npm modules.

Prettier by default uses standard stylelint configuration for stylesheet linting and formatting.

In order to allow single-line blocks in VSCode using Prettier - Code formatter extension, please take the following steps:

  1. Enable stylelint integration by adding this in the VSCode Settings (JSON): "prettier.stylelintIntegration": true
  2. Install stylelint and stylelint-prettier npm modules in your project directory. npm install stylelint, stylelint-prettier --save-dev
  3. Add a .stylelintrc.json file at the root of your project directory with the following code:
    {
    	"plugins": ["stylelint-prettier"],
    	"rules": {
    		"block-closing-brace-newline-after": "always-multi-line",
    		"block-closing-brace-empty-line-before": "never",
    		"block-closing-brace-space-before": "always",
    		"block-opening-brace-space-after": "always",
    		"block-opening-brace-space-before": "always",
    		"block-closing-brace-newline-before": "always-multi-line",
    		"block-opening-brace-newline-after": "always-multi-line",
    		"indentation": 4
    	}
    }

You can add/customize more stylelint rules, see the entire list of rules here.

Took me a while to understand how to configure these options, if you're starting out with stylelint, I highly recommend you read its guidelines first.

HTML Tag Highlight (Lesson 24)

All of the settings in the lesson 24 are deprecated and but the same result can be achieved with this settings
"highlight-matching-tag.styles": { "opening": { "full": { "highlight": "rgba(165, 153, 233, 0.3)" } } }

Local-by-Fly and phpcs on Windows 10

Hello, all

Is there anyone here got his setup with Local-by-Fly & vscode (with phpcs extension ) on Windows 10 work?
Note: phpcs works fine on the terminal ( WLS, or cgwin ), and for now I'm using

  "saveAndRun": {
    "commands": [{
        "match": "\\.php$",
        "cmd": "phpcbf -q --encoding=UTF-8 --standard='WordPress' ${file}",
        "silent": true,
        "wsl": true
      },
      {
        "match": "\\.php$",
        "cmd": "phpcs -q --encoding=UTF-8 --standard='WordPress' ${file}",
        "silent": true,
        "wsl": true
      }
    ]
  }

This way I can check directly in the terminal.

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.