search files
ctrl+p
type ? into search bar for help for other types of search
search editor commands
ctrl+shift+p or f1 or ctrl+p >
move line or selection up/down
alt+up/down
duplicate line or selection above/below
alt+shift+up/down
peek definition
alt+f12
you can scroll and edit in the pop-up overlay
goto definition
f12
add cursor at end of line or lines of selection
ctrl+shift+i
add cursor above below
ctrl+alt+shift+up/down
ctrl+`
open and toggle terminal window
ctrl+shit+`
open a new terminal
AnalogClock
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
Sunday, January 12, 2020
vscode you should know
Monday, February 20, 2017
Understanding Javascript Prototype Inheritence
MyBaseObj = function(a) {
this.a = a
}
MyObjBase.prototype.aSquared = function() {
return a ^ 2
}
MyObj1 = function(a, b) {
MyBaseObj.call(this, a)
this.b = b
}
MyObj1.prototype = Object.create(MyBaseObj.prototype)
MyObj1.prototype.constructor = MyObj1
MyObj2 = function(a, c) {
MyBaseObj.call(this, a)
this.c = c
}
MyObj2.prototype = Object.create(MyBaseObj.prototype)
MyObj2.prototype.constructor = MyObj2
Subscribe to:
Posts (Atom)