快速鍵

  • 跳至 Command line : ctrl+shift+p 或 F1
  • 全螢幕切換 : F11
  • 搜尋檔案 : Ctrl + P

  • 移動整行程式碼 : Alt + ↑ 或 Alt + ↓
  • 重整程式排列 : shift + alt + F
  • 複製一行 : Ctrl+C
  • 設註解 : ctrl+/
  • 跳至某一行 : Ctrl+G
  • 多行編輯-選擇行 : alt+(mouse-left)
  • 多行編輯-選擇多行 : alt+shift+(mouse-left) 移動位置
  • 左移一個字 : Ctrl + Left
  • 右移一個字 : Ctrl + Right
  • 編輯所有符合字串 : 選擇字串 –> Ctrl + shift + L
  • 編輯下一個符合字串 : 選擇字串 –> Ctrl + D
  • 移除前一個編輯符合字串 : 選擇字串 –> Ctrl + U
  • 選擇一整行 : Ctrl + L
  • 複製區塊(前面/後面) : Shift + Alt + UP/DOWN

  • 切換左邊功能表(sidebar) : Crtl + B
  • 分割畫面 : Ctrl + \
  • 開關 terminal : Ctrl + ` (反引號)
  • 關閉所有檔案 : Ctrl + K + W
  • 儲存檔案 : Ctrl + s
閱讀全文 »

stdin is not a tty (Windows Git Bash)

先進入 bash 再執行

閱讀全文 »

基本

ECMA-262是定義了Javascript的核心規範

註解 and Hello World

1
2
3
4
5
6
7
8
9
10
// This is a comment

/*
.....
多行註解
.....
*/

var str = 'Hello world!';
console.log(str); // Hello world!
閱讀全文 »

基本

import

1
2
3
4
5
6
7
8
9
10
11
# 一般 import
import turtle
timmy = turtle.Turtle()
# import 內容(簡單使用)
from turtle import Turtle, Screen
# import all ,可能不知出處,避免使用
from turtle import *
from tkinter import *
# module 太長,給予別名
import turtle as t
timmy = t.Turtle()
閱讀全文 »

Setup

set window

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# import tkinter
from tkinter import *
# init for window
window = Tk()
# 標題
window.title("My First GUI Program")
# windows size
window.minsize(width=500, height=300)
# padx, pady : window 預留語版邊 pad
# bg : window 背景顏色
window.config(padx=50, pady=70, bg="#B1DDC6")

# 保持顯示 window
window.mainloop()
閱讀全文 »

Win10 藍芽耳機加入及移除

藍芽耳機加入

閱讀全文 »

command

nslookup : 查詢 IP address

1
2
3
4
5
6
7
8
9
10
11
# local server IP
nslookup
# 查某一 host IP address
nslookup google.com
# 查 hot5656.website from 8.8.8.8(google DNS)
hot5656.website 8.8.8.8
伺服器: dns.google
Address: 8.8.8.8
未經授權的回答:
名稱: hot5656.website
Address: 54.168.160.39
閱讀全文 »