Skip to content

Instantly share code, notes, and snippets.

View HydrolienF's full-sized avatar
🐞
coding Kokcinelo !

HydrolienF

🐞
coding Kokcinelo !
View GitHub Profile
@HydrolienF
HydrolienF / java.json
Created January 11, 2023 16:24
Personalised snippets for VSCode in Java to have the basic atom shortcut.
{
// Place your snippets for java here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
"println": {
"prefix": "pl",
"body": [
"System.out.println("
],
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="20">
<profile kind="CodeFormatterProfile" name="JavaConventions" version="20">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_logical_operator" value="insert"/>
<lien> désactive la prévisualisation d'un lien.
||message|| met en spoiler
**message** gras
*m* italique
__m__ souligné
~~m~~ barré
// sans if, else, ?, for, while, switch faire une fonction qui affiche 0 si elle recois 0 et 1 à l'infini sinon.
class defiDeLygaen{
public static void main(String[] args) {
f2(0);
f2(1);
}
private static void f2(int x){
try {
System.out.println(1/x);
try {
{
"schemaVersion": 1,
"label": "French",
"message": "100%",
"color": "00FF00"
}