--> Skip to main content

Featured

Steps to Create a Project on GitHub

Steps to create a project on GitHub:  1.   Start a repo on GitHub 2.   Make a README.md file 3.   Open vs code – new folder – new terminal – git clone http:…. (from the repo). 4.   In terminal – cd theprojectname   à move into the project file 5.   Ls -la is for showing hidden file à not working for me ???? 6.   Make some changes to README file, in terminal git status à shows all the changes on the file 7.   To add all changes update to the folder à git add . (the dot . means all changes to be added) 8.   Add a new file index.html, in terminal à git commit -m “title of commit” -m “description of commit” 9.   Then git push origin master 10.                 ****Initial a repo in local text editor à git init 11.                 After use git add . etc, when pus...

VS code -- how to enter multiple lines with incrementing numbers as class name?

 I learnt a useful shortcut for entering multiple lines of similar code on VS Code. 

<div class="controls">
        <div class="control control-1"></div>
        <div class="control control-2"></div>
        <div class="control control-3"></div>
        <div class="control control-4"></div>
        <div class="control control-5"></div>
</div>
For typing out the above code, the five divs that have control-1 through control-5 classes can be achieved by one line of typing like this:
 
.control.control-$*5

That's it! The $ sign can do the trick of incrementing the number from 1 up for 5 times.

Popular Posts