Repository navigation
Expand file tree
/
Copy pathvisualStudio2019
More file actions
62 lines (44 loc) · 2.01 KB
/
Copy pathvisualStudio2019
File metadata and controls
62 lines (44 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Visual studio 2019 auto indent file extension :
Fenetre -> Extensions -> gérer les extensions "Format on save"
Visual studio 2019 auto indent a file
Ctrl + K
ctrl + D
Visual studio code 2019
Indentation :
Ctrl + A
Ctrl + K + f
Espace vide :
Ctrl + A
Ctrl + H
selectionner regex .*
selectionner pour tout
inséré la regex pour remplacer les lignes vide :
^(?([^\r\n])\s)*\r?$\r?\n
navigate betweeen file :
ctrl + tab
iterate enum
with number
/*int decoded = 0;
if(int.TryParse(sepBlock[1], out decoded))
{
ProdBRCommandParser.Enum.TypeTag enuValue = (ProdBRCommandParser.Enum.TypeTag)decoded;
var values = System.Enum.GetValues(typeof(ProdBRCommandParser.Enum.TypeTag));
foreach(ProdBRCommandParser.Enum.TypeTag e in values)
{
if(((int)e).ToString().Equals(sepBlock[1]))
{
}
}
}
/* config = new ProgramConfig
{
IpAddress = (true == teste.Get(argType.ip)) ? teste.argDico[argType.ip] : ProgramConfig.DEFAULT_IP,
Port = (true == teste.Get(argType.port)) ? int.Parse(teste.argDico[argType.port]) : ProgramConfig.DEFAULT_PORT,
};
*/
config = new ProgramConfig(
file: (true == teste.Get(argType.file)) ? teste.argDico[argType.file] : "",
ip: (true == teste.Get(argType.ip)) ? teste.argDico[argType.ip] : ProgramConfig.DEFAULT_IP,
port: (true == teste.Get(argType.port)) ? int.Parse(teste.argDico[argType.port]) : ProgramConfig.DEFAULT_PORT,
time: (true == teste.Get(argType.time)) ? int.Parse(teste.argDico[argType.time]) : ProgramConfig.DEFAULT_TIME
);