0
点赞
收藏
分享

微信扫一扫

go1-base

一.demo

1

package main 
//F:\Program Files\go\goprojects\project1\main包\main.go

import "fmt"

func main() {
	s1 := "[1]建议换行符号'\\r\\n' windows='\\n' linux='\\r\\n'\n\r"
	s2 := "go run main.go\t\tgo build main.go\tmain.exe\r\n"
	s3 := "gofmt main.go\t\tgofmt -w main.go"
	fmt.Println(s1, s2, s3)

	var str1 string = "\r\n[vscode]\r\nshiftAlt上下箭头=复制当前行\r\n"
	var str2 = "CtrlShiftK=删除当前行+下一行变成当前行\r\n"
	str3 := "CtrlShiftEnter=上面新增1行\r\n"
	str4 := "某行首字符前面 点击键盘Tab shiftTab=缩进代码\n"
	fmt.Printf("%s%s%s%v", str1, str2, str3, str4)
	fmt.Print("vscode_File(Edit)有快捷键提示\n\r")
}

/*shiftAltA=选中需要添加或者取消多行注释 ctrl/=该行 添加或取消单行注释 
Vscode_File_prefence_setting 搜索框  
1  Files: Auto Save  =onFocusChange 自动保存
2  editor.fontSize    =19  editor.fontWeight 默认"normal"
3  extension.autoUpdate  =false(None) //取消扩展自动更新 以后无通知
4  Update: Enable Windows Background Updates //启用后台更新可以取消
5  editor.quickSuggestions //建议提示 需要配套扩展插件使用
*/

2


举报

相关推荐

0 条评论